0022627: Change OCCT memory management defaults
[occt.git] / src / TDataStd / TDataStd_AsciiString.cdl
CommitLineData
7fd59977 1-- File: TDataStd_AsciiString.cdl
2-- Created: Tue Jul 31 12:16:55 2007
3-- Author: Sergey ZARITCHNY
4-- <szy@popox.nnov.matra-dtv.fr>
5---Copyright: Open CASCADE SA 2007
6
7
8class AsciiString from TDataStd inherits Attribute from TDF
9
10 ---Purpose: Used to define an AsciiString attribute containing a TCollection_AsciiString
11
12uses
13 Attribute from TDF,
14 Label from TDF,
15 GUID from Standard,
16 AsciiString from TCollection,
17 RelocationTable from TDF
18
19is
20 ---Purpose: class methods
21 -- =============
22
23 GetID (myclass)
24 ---C++: return const &
25 ---Purpose: Returns the GUID of the attribute.
26 returns GUID from Standard;
27
28 Set (myclass; label : Label from TDF; string : AsciiString from TCollection)
29 ---Purpose: Finds, or creates an AsciiString attribute and sets the string.
30 -- the AsciiString attribute is returned.
31 returns AsciiString from TDataStd;
32
33 ---Purpose: AsciiString methods
34 -- ===================
35
36 Create
37 returns mutable AsciiString from TDataStd;
38 -- Constructor
39
40 Set (me : mutable; S : AsciiString from TCollection);
41 -- Sets the ascii string <S>
42
43 Get (me)
44 returns AsciiString from TCollection;
45 -- Returns the AsciiString <myString>
46 ---C++: return const &
47
48 IsEmpty(me)
49 returns Boolean from Standard;
50 -- Returns True if the string of <me> contains zero characters.
51
52 ---Category: TDF_Attribute methods
53 -- =====================
54
55 ID (me)
56 ---C++: return const &
57 returns GUID from Standard;
58
59 Restore (me: mutable; with : Attribute from TDF);
60 -- Restores the backuped content from <with> into this one.
61
62 NewEmpty (me)
63 returns mutable Attribute from TDF;
64 -- Returns an new empty AsciiString attribute.
65
66 Paste (me; into : mutable Attribute from TDF;
67 RT : mutable RelocationTable from TDF);
68 -- This method is used when copying an attribute from a source structure
69 -- into a target structure.
70
71 Dump(me; anOS : in out OStream from Standard)
72 returns OStream from Standard
73 is redefined;
74 ---C++: return &
75 -- This method dumps the attribute value into the stream
76fields
77 myString : AsciiString from TCollection;
78
79end AsciiString;