1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/src/Standard/Standard_GUID.cdl
abv 2cb4424136 0024805: Eliminate unused static functions and methods: ShallowDump(), ShallowCopy(), STANDARD_TYPE(...)
Implementation of global functions STANDARD_TYPE() for types not inheriting Standard_Transient or Standard_Persistent are eliminated.

Global functions and class methods ShallowCopy() are removed; also removed unused classes Visual3d_PickPath and Visual3d_PickDescriptor.

Global functions and class methods ShallowDump() are removed, except for classes Standard_GUID, TopLoc_Datum, and TopLoc_Location as the latter are still used in some Debug printouts.
2014-04-17 15:59:15 +04:00

128 lines
4.0 KiB
Plaintext

-- Created on: 1997-06-19
-- Created by: Christophe LEYNADIER
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class GUID from Standard
inherits Storable from Standard
is
Create returns GUID from Standard;
Create(aGuid : CString from Standard)
returns GUID from Standard;
---Purpose: build a GUID from an ascii string with the
-- following format:
-- Length : 36 char
-- "00000000-0000-0000-0000-000000000000"
Create(aGuid : ExtString from Standard)
returns GUID from Standard;
---Purpose: build a GUID from an unicode string with the
-- following format:
--
-- "00000000-0000-0000-0000-000000000000"
Create(a32b : Integer from Standard;
a16b1 : ExtCharacter from Standard;
a16b2 : ExtCharacter from Standard;
a16b3 : ExtCharacter from Standard;
a8b1 : Byte from Standard;
a8b2 : Byte from Standard;
a8b3 : Byte from Standard;
a8b4 : Byte from Standard;
a8b5 : Byte from Standard;
a8b6 : Byte from Standard)
returns GUID from Standard;
Create(aGuid : UUID from Standard)
returns GUID from Standard;
Create(aGuid : GUID from Standard)
returns GUID from Standard;
ToUUID(me)
returns UUID from Standard ;
ToCString(me; aStrGuid : PCharacter from Standard);
---Purpose: translate the GUID into ascii string
-- the aStrGuid is allocated by user.
-- the guid have the following format:
--
-- "00000000-0000-0000-0000-000000000000"
ToExtString(me; aStrGuid : PExtCharacter from Standard);
---Purpose: translate the GUID into unicode string
-- the aStrGuid is allocated by user.
-- the guid have the following format:
--
-- "00000000-0000-0000-0000-000000000000"
IsSame(me; uid : GUID from Standard)
returns Boolean from Standard;
---C++: alias operator ==
IsNotSame(me; uid : GUID from Standard)
returns Boolean from Standard;
---C++: alias operator !=
Assign(me : out; uid : GUID from Standard);
---C++: alias operator =
Assign(me : out; uid : UUID from Standard);
---C++: alias operator =
ShallowDump(me; aStream : in out OStream from Standard);
---Purpose: Display the GUID with the following format:
--
-- "00000000-0000-0000-0000-000000000000"
CheckGUIDFormat(myclass; aGuid : CString from Standard)
returns Boolean from Standard;
---Purpose: Check the format of a GUID string.
-- It checks the size, the position of the '-' and the correct size of fields.
Hash(me; Upper : Integer)
returns Integer;
---Level: Internal
---Purpose: Hash function for GUID.
HashCode(myclass ; aguid : GUID from Standard; Upper : Integer)
returns Integer;
---Level: Internal
---Purpose: H method used by collections.
IsEqual(myclass ; string1 : GUID from Standard;
string2 : GUID from Standard)
returns Boolean;
---Level: Internal
---Purpose: Returns True when the two GUID are the same.
fields
my32b : Integer;
my16b1 : ExtCharacter;
my16b2 : ExtCharacter;
my16b3 : ExtCharacter;
my8b1 : Byte;
my8b2 : Byte;
my8b3 : Byte;
my8b4 : Byte;
my8b5 : Byte;
my8b6 : Byte;
end;