1 -- Created on: 2007-07-31
2 -- Created by: Sergey ZARITCHNY
3 -- Copyright (c) 2007-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
22 class AsciiString from TDataStd inherits Attribute from TDF
24 ---Purpose: Used to define an AsciiString attribute containing a TCollection_AsciiString
30 AsciiString from TCollection,
31 RelocationTable from TDF
34 ---Purpose: class methods
38 ---C++: return const &
39 ---Purpose: Returns the GUID of the attribute.
40 returns GUID from Standard;
42 Set (myclass; label : Label from TDF; string : AsciiString from TCollection)
43 ---Purpose: Finds, or creates an AsciiString attribute and sets the string.
44 -- the AsciiString attribute is returned.
45 returns AsciiString from TDataStd;
47 ---Purpose: AsciiString methods
48 -- ===================
51 returns mutable AsciiString from TDataStd;
54 Set (me : mutable; S : AsciiString from TCollection);
55 -- Sets the ascii string <S>
58 returns AsciiString from TCollection;
59 -- Returns the AsciiString <myString>
60 ---C++: return const &
63 returns Boolean from Standard;
64 -- Returns True if the string of <me> contains zero characters.
66 ---Category: TDF_Attribute methods
67 -- =====================
70 ---C++: return const &
71 returns GUID from Standard;
73 Restore (me: mutable; with : Attribute from TDF);
74 -- Restores the backuped content from <with> into this one.
77 returns mutable Attribute from TDF;
78 -- Returns an new empty AsciiString attribute.
80 Paste (me; into : mutable Attribute from TDF;
81 RT : mutable RelocationTable from TDF);
82 -- This method is used when copying an attribute from a source structure
83 -- into a target structure.
85 Dump(me; anOS : in out OStream from Standard)
86 returns OStream from Standard
89 -- This method dumps the attribute value into the stream
91 myString : AsciiString from TCollection;