0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / IGESAppli / IGESAppli_LevelToPWBLayerMap.hxx
1 // Created on: 1993-01-11
2 // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License 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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESAppli_LevelToPWBLayerMap_HeaderFile
18 #define _IGESAppli_LevelToPWBLayerMap_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <TColStd_HArray1OfInteger.hxx>
25 #include <Interface_HArray1OfHAsciiString.hxx>
26 #include <IGESData_IGESEntity.hxx>
27 class Standard_DimensionMismatch;
28 class Standard_OutOfRange;
29 class TCollection_HAsciiString;
30
31
32 class IGESAppli_LevelToPWBLayerMap;
33 DEFINE_STANDARD_HANDLE(IGESAppli_LevelToPWBLayerMap, IGESData_IGESEntity)
34
35 //! defines LevelToPWBLayerMap, Type <406> Form <24>
36 //! in package IGESAppli
37 //! Used to correlate an exchange file level number with
38 //! its corresponding native level identifier, physical PWB
39 //! layer number and predefined functional level
40 //! identification
41 class IGESAppli_LevelToPWBLayerMap : public IGESData_IGESEntity
42 {
43
44 public:
45
46   
47   Standard_EXPORT IGESAppli_LevelToPWBLayerMap();
48   
49   //! This method is used to set the fields of the class
50   //! LevelToPWBLayerMap
51   //! - nbPropVal       : Number of property values
52   //! - allExchLevels   : Exchange File Level Numbers
53   //! - allNativeLevels : Native Level Identifications
54   //! - allPhysLevels   : Physical Layer Numbers
55   //! - allExchIdents   : Exchange File Level Identifications
56   //! raises exception if allExchLevels, allNativeLevels, allPhysLevels
57   //! and all ExchIdents are not of same dimensions
58   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TColStd_HArray1OfInteger)& allExchLevels, const Handle(Interface_HArray1OfHAsciiString)& allNativeLevels, const Handle(TColStd_HArray1OfInteger)& allPhysLevels, const Handle(Interface_HArray1OfHAsciiString)& allExchIdents);
59   
60   //! returns number of property values
61   Standard_EXPORT Standard_Integer NbPropertyValues() const;
62   
63   //! returns number of level to layer definitions
64   Standard_EXPORT Standard_Integer NbLevelToLayerDefs() const;
65   
66   //! returns Exchange File Level Number
67   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
68   Standard_EXPORT Standard_Integer ExchangeFileLevelNumber (const Standard_Integer Index) const;
69   
70   //! returns Native Level Identification
71   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
72   Standard_EXPORT Handle(TCollection_HAsciiString) NativeLevel (const Standard_Integer Index) const;
73   
74   //! returns Physical Layer Number
75   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
76   Standard_EXPORT Standard_Integer PhysicalLayerNumber (const Standard_Integer Index) const;
77   
78   Standard_EXPORT Handle(TCollection_HAsciiString) ExchangeFileLevelIdent (const Standard_Integer Index) const;
79
80
81
82
83   DEFINE_STANDARD_RTTIEXT(IGESAppli_LevelToPWBLayerMap,IGESData_IGESEntity)
84
85 protected:
86
87
88
89
90 private:
91
92
93   Standard_Integer theNbPropertyValues;
94   Handle(TColStd_HArray1OfInteger) theExchangeFileLevelNumber;
95   Handle(Interface_HArray1OfHAsciiString) theNativeLevel;
96   Handle(TColStd_HArray1OfInteger) thePhysicalLayerNumber;
97   Handle(Interface_HArray1OfHAsciiString) theExchangeFileLevelIdent;
98
99
100 };
101
102
103
104
105
106
107
108 #endif // _IGESAppli_LevelToPWBLayerMap_HeaderFile