0022807: Loading of STEP entities in model during reading of STEP file requires redun...
[occt.git] / src / StepData / StepData_FieldList1.cdl
1 -- File:        StepData_FieldList1.cdl
2 -- Created:     Tue Apr  1 13:18:59 1997
3 -- Author:      Christian CAILLET
4 --              <cky@heliox.paris1.matra-dtv.fr>
5 ---Copyright:    Matra Datavision 1997
6
7
8 class FieldList1  from StepData    inherits FieldList  from StepData
9
10     ---Purpose : Describes a list of ONE field
11
12 uses Field from StepData
13
14 raises OutOfRange
15
16 is
17
18     Create returns FieldList1;
19     ---Purpose : Creates a FieldList of 1 Field
20
21     NbFields (me) returns Integer  is redefined;
22     ---Purpose : Returns the count of fields. Here, returns 1
23
24     Field  (me; num : Integer) returns Field
25     ---Purpose : Returns the field n0 <num> between 1 and NbFields (read only)
26         raises OutOfRange
27     --           Error if <num> out of range
28         is redefined;
29     ---C++ : return const &
30
31     CField (me : in out; num : Integer) returns Field
32     ---Purpose : Returns the field n0 <num> between 1 and NbFields, in order to
33     --           modify its content
34         raises OutOfRange
35     --           Error if <num> out of range
36         is redefined;
37     ---C++ : return &
38
39     Destroy (me: in out) is virtual;
40     ---C++ : alias "Standard_EXPORT virtual ~StepData_FieldList1() { Destroy(); }"
41
42 fields
43
44     thefield : Field from StepData;
45
46 end FieldList1;