0022941: Memory leak in StepData_StepReaderData.cxx line 1826
[occt.git] / src / StepData / StepData_FieldListD.cdl
1 -- File:        StepData_FieldListD.cdl
2 -- Created:     Tue Apr  1 13:25:35 1997
3 -- Author:      Christian CAILLET
4 --              <cky@heliox.paris1.matra-dtv.fr>
5 ---Copyright:    Matra Datavision 1997
6
7
8 class FieldListD  from StepData    inherits FieldList  from StepData
9
10     ---Purpose : Describes a list of fields, in a general way
11     --           This basic class is for a null size list
12     --           Subclasses are for 1, N (fixed) or Dynamic sizes
13
14 uses Field from StepData, HArray1OfField from StepData
15
16 raises OutOfRange
17
18 is
19
20     Create (nb : Integer) returns FieldListD;
21     ---Purpose : Creates a FieldListD of <nb> Fields
22
23     SetNb  (me : in out; nb : Integer);
24     ---Purpose : Sets a new count of Fields. Former contents are lost
25
26     NbFields (me) returns Integer  is redefined;
27     ---Purpose : Returns the count of fields. Here, returns starting <nb>
28
29     Field  (me; num : Integer) returns Field
30     ---Purpose : Returns the field n0 <num> between 1 and NbFields (read only)
31         raises OutOfRange
32     --           Error if <num> out of range
33         is redefined;
34     ---C++ : return const &
35
36     CField (me : in out; num : Integer) returns Field
37     ---Purpose : Returns the field n0 <num> between 1 and NbFields, in order to
38     --           modify its content
39         raises OutOfRange
40     --           Error if <num> out of range
41         is redefined;
42     ---C++ : return &
43
44     Destroy (me: in out) is virtual;
45     ---C++ : alias "Standard_EXPORT virtual ~StepData_FieldListD() { Destroy(); }"
46
47
48 fields
49
50     thefields : HArray1OfField;
51
52 end FieldListD;