b311480e |
1 | -- Created on: 2007-05-29 |
2 | -- Created by: Vlad Romashko |
3 | -- Copyright (c) 2007-2012 OPEN CASCADE SAS |
4 | -- |
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. |
9 | -- |
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. |
12 | -- |
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. |
19 | |
7fd59977 |
20 | |
21 | class RealList from TDataStd inherits Attribute from TDF |
22 | |
23 | ---Purpose: Contains a list of doubles. |
24 | |
25 | uses |
26 | |
27 | Attribute from TDF, |
28 | GUID from Standard, |
29 | Label from TDF, |
30 | RelocationTable from TDF, |
31 | ListOfReal from TColStd |
32 | |
33 | is |
34 | |
35 | ---Purpose: Static methods |
36 | -- ============== |
37 | |
38 | GetID (myclass) |
39 | ---C++: return const & |
40 | ---Purpose: Returns the ID of the list of doubles attribute. |
41 | returns GUID from Standard; |
42 | |
43 | Set (myclass; label : Label from TDF) |
44 | ---Purpose: Finds or creates a list of double values attribute. |
45 | returns RealList from TDataStd; |
46 | |
47 | |
48 | ---Category: RealList methods |
49 | -- =================== |
50 | |
51 | Create |
52 | returns mutable RealList from TDataStd; |
53 | |
54 | IsEmpty (me) |
55 | returns Boolean from Standard; |
56 | |
57 | Extent (me) |
58 | returns Integer from Standard; |
59 | |
60 | Prepend (me : mutable; |
61 | value : Real from Standard); |
62 | |
63 | Append (me : mutable; |
64 | value : Real from Standard); |
65 | |
66 | InsertBefore (me : mutable; |
67 | value : Real from Standard; |
68 | before_value : Real from Standard) |
69 | ---Purpose: Inserts the <value> before the first meet of <before_value>. |
70 | returns Boolean from Standard; |
71 | |
72 | InsertAfter (me : mutable; |
73 | value : Real from Standard; |
74 | after_value : Real from Standard) |
75 | ---Purpose: Inserts the <value> after the first meet of <after_value>. |
76 | returns Boolean from Standard; |
77 | |
78 | Remove (me : mutable; |
79 | value : Real from Standard) |
80 | ---Purpose: Removes the first meet of the <value>. |
81 | returns Boolean from Standard; |
82 | |
83 | Clear (me : mutable); |
84 | |
85 | First (me) |
86 | returns Real from Standard; |
87 | |
88 | Last (me) |
89 | returns Real from Standard; |
90 | |
91 | List (me) |
92 | ---C++: return const & |
93 | returns ListOfReal from TColStd; |
94 | |
95 | |
96 | ---Category: Methodes of TDF_Attribute |
97 | -- ========================= |
98 | |
99 | ID (me) |
100 | ---C++: return const & |
101 | returns GUID from Standard; |
102 | |
103 | Restore (me: mutable; With : Attribute from TDF); |
104 | |
105 | NewEmpty (me) |
106 | returns mutable Attribute from TDF; |
107 | |
108 | Paste (me; Into : mutable Attribute from TDF; |
109 | RT : mutable RelocationTable from TDF); |
110 | |
111 | Dump(me; anOS : in out OStream from Standard) |
112 | returns OStream from Standard |
113 | is redefined; |
114 | ---C++: return & |
115 | |
116 | |
117 | fields |
118 | |
119 | myList : ListOfReal from TColStd; |
120 | |
121 | |
122 | end RealList; |