0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / StepData / StepData_FieldListN.cdl
CommitLineData
b311480e 1-- Created on: 1997-04-01
2-- Created by: Christian CAILLET
3-- Copyright (c) 1997-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
973c2be1 8-- This library is free software; you can redistribute it and / or modify it
9-- under the terms of the GNU Lesser General Public version 2.1 as published
10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class FieldListN from StepData inherits FieldList from StepData
18
19 ---Purpose : Describes a list of fields, in a general way
20 -- This basic class is for a null size list
21 -- Subclasses are for 1, N (fixed) or Dynamic sizes
22
23uses Field from StepData, Array1OfField from StepData
24
25raises OutOfRange
26
27is
28
29 Create (nb : Integer) returns FieldListN;
30 ---Purpose : Creates a FieldListN of <nb> Fields
31
32 NbFields (me) returns Integer is redefined;
33 ---Purpose : Returns the count of fields. Here, returns starting <nb>
34
35 Field (me; num : Integer) returns Field
36 ---Purpose : Returns the field n0 <num> between 1 and NbFields (read only)
37 raises OutOfRange
38 -- Error if <num> out of range
39 is redefined;
40 ---C++ : return const &
41
42 CField (me : in out; num : Integer) returns Field
43 ---Purpose : Returns the field n0 <num> between 1 and NbFields, in order to
44 -- modify its content
45 raises OutOfRange
46 -- Error if <num> out of range
47 is redefined;
48 ---C++ : return &
49
50 Destroy (me: in out) is virtual;
51 ---C++ : alias "Standard_EXPORT virtual ~StepData_FieldListN() { Destroy(); }"
52
53
54fields
55
56 thefields : Array1OfField;
57
58end FieldListN;