0024428: Implementation of LGPL license
[occt.git] / src / IGESGraph / IGESGraph_DefinitionLevel.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-09
2-- Created by: CKY / Contract Toubro-Larsen ( TCD )
3-- Copyright (c) 1993-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
7fd59977 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
7fd59977 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.
7fd59977 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class DefinitionLevel from IGESGraph inherits LevelListEntity
18
19 ---Purpose: defines IGESDefinitionLevel, Type <406> Form <1>
20 -- in package IGESGraph
21 --
22 -- Indicates the no. of levels on which an entity is
23 -- defined
24
25uses
26
27 IGESEntity from IGESData,
28 HArray1OfInteger from TColStd
29
30raises OutOfRange
31
32is
33
34 Create returns mutable DefinitionLevel;
35
36 -- Specific Methods pertaining to the class
37
38 Init (me : mutable;
39 allLevelNumbers : HArray1OfInteger);
40 ---Purpose : This method is used to set the fields of the class
41 -- DefinitionLevel
42 -- - allLevelNumbers : Values of Level Numbers
43
44 NbPropertyValues (me) returns Integer;
45 ---Purpose : returns the number of property values in <me>
46
47 NbLevelNumbers (me) returns Integer;
48 ---Purpose : Must return the count of levels (== NbPropertyValues)
49
50 LevelNumber (me; LevelIndex : Integer) returns Integer
51 raises OutOfRange;
52 ---Purpose : returns the Level Number of <me> indicated by <LevelIndex>
53 -- raises an exception if LevelIndex is <= 0 or
54 -- LevelIndex > NbPropertyValues
55
56fields
57
58--
59-- Class : IGESGraph_DefinitionLevel
60--
61-- Purpose : Declaration of the variables specific to a Definition Level.
62--
63-- Reminder : A Definition Level is defined by :
64-- - Level Numbers
65
66 theLevelNumbers : HArray1OfInteger;
67
68end DefinitionLevel;