b311480e |
1 | -- Created on: 2004-01-15 |
2 | -- Created by: Sergey KUUL |
973c2be1 |
3 | -- Copyright (c) 2004-2014 OPEN CASCADE SAS |
b311480e |
4 | -- |
973c2be1 |
5 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
6 | -- |
d5f74e42 |
7 | -- This library is free software; you can redistribute it and/or modify it under |
8 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | -- by the Free Software Foundation, with special exception defined in the file |
10 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | -- |
973c2be1 |
13 | -- Alternatively, this file may be used under the terms of Open CASCADE |
14 | -- commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | class Datum from XCAFDoc inherits Attribute from TDF |
17 | |
ff8178ef |
18 | ---Purpose: attribute to store datum |
7fd59977 |
19 | |
20 | uses |
21 | Label from TDF, |
22 | RelocationTable from TDF, |
23 | HAsciiString from TCollection |
24 | |
25 | is |
26 | Create returns Datum from XCAFDoc; |
27 | |
28 | ---Category: class methods |
29 | -- ============= |
30 | |
31 | GetID (myclass) |
32 | ---C++: return const & |
33 | returns GUID from Standard; |
34 | |
35 | Set (myclass; label : Label from TDF; |
36 | aName : HAsciiString from TCollection; |
37 | aDescription : HAsciiString from TCollection; |
38 | anIdentification : HAsciiString from TCollection) |
39 | returns Datum from XCAFDoc; |
40 | |
41 | Set (me : mutable; aName : HAsciiString from TCollection; |
42 | aDescription : HAsciiString from TCollection; |
43 | anIdentification : HAsciiString from TCollection); |
44 | |
45 | GetName (me) returns HAsciiString from TCollection; |
46 | |
47 | GetDescription (me) returns HAsciiString from TCollection; |
48 | |
49 | GetIdentification (me) returns HAsciiString from TCollection; |
50 | |
51 | ID (me) |
52 | ---C++: return const & |
53 | returns GUID from Standard; |
54 | |
55 | Restore (me: mutable; With : Attribute from TDF); |
56 | |
57 | NewEmpty (me) |
6e33d3ce |
58 | returns Attribute from TDF; |
7fd59977 |
59 | |
6e33d3ce |
60 | Paste (me; Into : Attribute from TDF; |
61 | RT : RelocationTable from TDF); |
7fd59977 |
62 | |
63 | fields |
64 | myName : HAsciiString from TCollection; |
65 | myDescription : HAsciiString from TCollection; |
66 | myIdentification : HAsciiString from TCollection; |
67 | |
68 | end Datum; |