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
8 class FieldListD from StepData inherits FieldList from StepData
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
14 uses Field from StepData, HArray1OfField from StepData
20 Create (nb : Integer) returns FieldListD;
21 ---Purpose : Creates a FieldListD of <nb> Fields
23 SetNb (me : in out; nb : Integer);
24 ---Purpose : Sets a new count of Fields. Former contents are lost
26 NbFields (me) returns Integer is redefined;
27 ---Purpose : Returns the count of fields. Here, returns starting <nb>
29 Field (me; num : Integer) returns Field
30 ---Purpose : Returns the field n0 <num> between 1 and NbFields (read only)
32 -- Error if <num> out of range
34 ---C++ : return const &
36 CField (me : in out; num : Integer) returns Field
37 ---Purpose : Returns the field n0 <num> between 1 and NbFields, in order to
40 -- Error if <num> out of range
44 Destroy (me: in out) is virtual;
45 ---C++ : alias "Standard_EXPORT virtual ~StepData_FieldListD() { Destroy(); }"
50 thefields : HArray1OfField;