/usr/include/opencascade/Standard_GUID.hxx is in libopencascade-foundation-dev 6.5.0.dfsg-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Standard_GUID_HeaderFile
#define _Standard_GUID_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_ExtCharacter_HeaderFile
#include <Standard_ExtCharacter.hxx>
#endif
#ifndef _Standard_Byte_HeaderFile
#include <Standard_Byte.hxx>
#endif
#ifndef _Standard_Storable_HeaderFile
#include <Standard_Storable.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Standard_ExtString_HeaderFile
#include <Standard_ExtString.hxx>
#endif
#ifndef _Standard_UUID_HeaderFile
#include <Standard_UUID.hxx>
#endif
#ifndef _Standard_PCharacter_HeaderFile
#include <Standard_PCharacter.hxx>
#endif
#ifndef _Standard_PExtCharacter_HeaderFile
#include <Standard_PExtCharacter.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
#ifndef _Standard_PrimitiveTypes_HeaderFile
#include <Standard_PrimitiveTypes.hxx>
#endif
Standard_EXPORT const Handle(Standard_Type)& STANDARD_TYPE(Standard_GUID);
class Standard_GUID {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
Standard_EXPORT Standard_GUID();
//! build a GUID from an ascii string with the <br>
//! following format: <br>
//! Length : 36 char <br>
//! "00000000-0000-0000-0000-000000000000" <br>
Standard_EXPORT Standard_GUID(const Standard_CString aGuid);
//! build a GUID from an unicode string with the <br>
//! following format: <br>
//! <br>
//! "00000000-0000-0000-0000-000000000000" <br>
Standard_EXPORT Standard_GUID(const Standard_ExtString aGuid);
Standard_EXPORT Standard_GUID(const Standard_Integer a32b,const Standard_ExtCharacter a16b1,const Standard_ExtCharacter a16b2,const Standard_ExtCharacter a16b3,const Standard_Byte a8b1,const Standard_Byte a8b2,const Standard_Byte a8b3,const Standard_Byte a8b4,const Standard_Byte a8b5,const Standard_Byte a8b6);
Standard_EXPORT Standard_GUID(const Standard_UUID& aGuid);
Standard_EXPORT Standard_GUID(const Standard_GUID& aGuid);
Standard_EXPORT Standard_UUID ToUUID() const;
//! translate the GUID into ascii string <br>
//! the aStrGuid is allocated by user. <br>
//! the guid have the following format: <br>
//! <br>
//! "00000000-0000-0000-0000-000000000000" <br>
Standard_EXPORT void ToCString(const Standard_PCharacter aStrGuid) const;
//! translate the GUID into unicode string <br>
//! the aStrGuid is allocated by user. <br>
//! the guid have the following format: <br>
//! <br>
//! "00000000-0000-0000-0000-000000000000" <br>
Standard_EXPORT void ToExtString(const Standard_PExtCharacter aStrGuid) const;
Standard_EXPORT Standard_Boolean IsSame(const Standard_GUID& uid) const;
Standard_Boolean operator ==(const Standard_GUID& uid) const
{
return IsSame(uid);
}
Standard_EXPORT Standard_Boolean IsNotSame(const Standard_GUID& uid) const;
Standard_Boolean operator !=(const Standard_GUID& uid) const
{
return IsNotSame(uid);
}
Standard_EXPORT void Assign(const Standard_GUID& uid) ;
void operator =(const Standard_GUID& uid)
{
Assign(uid);
}
Standard_EXPORT void Assign(const Standard_UUID& uid) ;
void operator =(const Standard_UUID& uid)
{
Assign(uid);
}
//! Display the GUID with the following format: <br>
//! <br>
//! "00000000-0000-0000-0000-000000000000" <br>
Standard_EXPORT virtual void ShallowDump(Standard_OStream& aStream) const;
//! Check the format of a GUID string. <br>
//! It checks the size, the position of the '-' and the correct size of fields. <br>
Standard_EXPORT static Standard_Boolean CheckGUIDFormat(const Standard_CString aGuid) ;
//! Hash function for GUID. <br>
Standard_EXPORT Standard_Integer Hash(const Standard_Integer Upper) const;
//! H method used by collections. <br>
Standard_EXPORT static Standard_Integer HashCode(const Standard_GUID& aguid,const Standard_Integer Upper) ;
//! Returns True when the two GUID are the same. <br>
Standard_EXPORT static Standard_Boolean IsEqual(const Standard_GUID& string1,const Standard_GUID& string2) ;
Standard_Integer _CSFDB_GetStandard_GUIDmy32b() const { return my32b; }
void _CSFDB_SetStandard_GUIDmy32b(const Standard_Integer p) { my32b = p; }
Standard_ExtCharacter _CSFDB_GetStandard_GUIDmy16b1() const { return my16b1; }
void _CSFDB_SetStandard_GUIDmy16b1(const Standard_ExtCharacter p) { my16b1 = p; }
Standard_ExtCharacter _CSFDB_GetStandard_GUIDmy16b2() const { return my16b2; }
void _CSFDB_SetStandard_GUIDmy16b2(const Standard_ExtCharacter p) { my16b2 = p; }
Standard_ExtCharacter _CSFDB_GetStandard_GUIDmy16b3() const { return my16b3; }
void _CSFDB_SetStandard_GUIDmy16b3(const Standard_ExtCharacter p) { my16b3 = p; }
Standard_Byte _CSFDB_GetStandard_GUIDmy8b1() const { return my8b1; }
void _CSFDB_SetStandard_GUIDmy8b1(const Standard_Byte p) { my8b1 = p; }
Standard_Byte _CSFDB_GetStandard_GUIDmy8b2() const { return my8b2; }
void _CSFDB_SetStandard_GUIDmy8b2(const Standard_Byte p) { my8b2 = p; }
Standard_Byte _CSFDB_GetStandard_GUIDmy8b3() const { return my8b3; }
void _CSFDB_SetStandard_GUIDmy8b3(const Standard_Byte p) { my8b3 = p; }
Standard_Byte _CSFDB_GetStandard_GUIDmy8b4() const { return my8b4; }
void _CSFDB_SetStandard_GUIDmy8b4(const Standard_Byte p) { my8b4 = p; }
Standard_Byte _CSFDB_GetStandard_GUIDmy8b5() const { return my8b5; }
void _CSFDB_SetStandard_GUIDmy8b5(const Standard_Byte p) { my8b5 = p; }
Standard_Byte _CSFDB_GetStandard_GUIDmy8b6() const { return my8b6; }
void _CSFDB_SetStandard_GUIDmy8b6(const Standard_Byte p) { my8b6 = p; }
protected:
private:
Standard_Integer my32b;
Standard_ExtCharacter my16b1;
Standard_ExtCharacter my16b2;
Standard_ExtCharacter my16b3;
Standard_Byte my8b1;
Standard_Byte my8b2;
Standard_Byte my8b3;
Standard_Byte my8b4;
Standard_Byte my8b5;
Standard_Byte my8b6;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|