7fd59977 |
1 | -- File: TDataStd_NoteBook.cdl |
2 | -- Created: Tue Jul 29 14:32:05 1997 |
3 | -- Author: Denis PASCAL |
4 | ---Copyright: Matra Datavision 1997 |
5 | |
6 | |
7 | class NoteBook from TDataStd inherits Attribute from TDF |
8 | |
9 | ---Purpose: NoteBook Object attribute |
10 | |
11 | |
12 | uses Attribute from TDF, |
13 | Label from TDF, |
14 | Real from TDataStd, |
15 | Integer from TDataStd, |
16 | GUID from Standard, |
17 | DataSet from TDF, |
18 | RelocationTable from TDF |
19 | |
20 | is |
21 | |
22 | ---Purpose: class methods |
23 | -- ============= |
24 | |
25 | Find (myclass; current : Label from TDF; N : in out NoteBook from TDataStd) |
26 | ---Purpose: try to retrieve a NoteBook attribute at <current> label |
27 | -- or in fathers label of <current>. Returns True if |
28 | -- found and set <N>. |
29 | returns Boolean from Standard; |
30 | |
31 | New (myclass; label : Label from TDF) |
32 | ---Purpose: Create an enpty NoteBook attribute, located at |
33 | -- <label>. Raises if <label> has attribute |
34 | returns NoteBook from TDataStd; |
35 | |
36 | GetID (myclass) |
37 | ---C++: return const & |
38 | returns GUID from Standard; |
39 | ---Purpose: NoteBook methods |
40 | -- =============== |
41 | |
42 | Create |
43 | returns mutable NoteBook from TDataStd; |
44 | |
45 | |
46 | Append (me : mutable; value : Real from Standard; |
47 | isExported : Boolean from Standard = Standard_False) |
48 | ---Purpose: Tool to Create an Integer attribute from <value>, |
49 | -- Insert it in a new son label of <me>. The Real |
50 | -- attribute is returned. |
51 | returns Real from TDataStd; |
52 | |
53 | Append (me : mutable; value : Integer from Standard; |
54 | isExported : Boolean from Standard = Standard_False) |
55 | ---Purpose: Tool to Create an Real attribute from <value>, Insert |
56 | -- it in a new son label of <me>. The Integer attribute |
57 | -- is returned. |
58 | returns Integer from TDataStd; |
59 | |
60 | |
61 | ---Category: methodes de TDF_Attribute |
62 | -- ========================= |
63 | |
64 | ID (me) |
65 | ---C++: return const & |
66 | returns GUID from Standard; |
67 | |
68 | Restore (me: mutable; with : Attribute from TDF); |
69 | |
70 | NewEmpty (me) |
71 | returns mutable Attribute from TDF; |
72 | |
73 | Paste (me; into : mutable Attribute from TDF; |
74 | RT : mutable RelocationTable from TDF); |
75 | |
76 | Dump(me; anOS : in out OStream from Standard) |
77 | returns OStream from Standard |
78 | is redefined; |
79 | ---C++: return & |
80 | |
81 | end NoteBook; |