summaryrefslogtreecommitdiff
path: root/inc/IGESDefs_GenericData.hxx
blob: 95eb6ff7e2d0947ed18a3c2bb00d5ed367a26aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IGESDefs_GenericData_HeaderFile
#define _IGESDefs_GenericData_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESDefs_GenericData_HeaderFile
#include <Handle_IGESDefs_GenericData.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_TCollection_HAsciiString_HeaderFile
#include <Handle_TCollection_HAsciiString.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfInteger_HeaderFile
#include <Handle_TColStd_HArray1OfInteger.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfTransient_HeaderFile
#include <Handle_TColStd_HArray1OfTransient.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_IGESData_IGESEntity_HeaderFile
#include <Handle_IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TCollection_HAsciiString;
class TColStd_HArray1OfInteger;
class TColStd_HArray1OfTransient;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class Standard_NullObject;
class Standard_Transient;
class IGESData_IGESEntity;


//! defines IGES Generic Data, Type <406> Form <27> <br>
//!          in package IGESDefs <br>
//!          Used to communicate information defined by the system <br>
//!          operator while creating the model. The information is <br>
//!          system specific and does not map into one of the <br>
//!          predefined properties or associativities. Properties <br>
//!          and property values can be defined by multiple <br>
//!          instances of this property. <br>
class IGESDefs_GenericData : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESDefs_GenericData();
  //! This method is used to set the fields of the class <br>
//!           GenericData <br>
//!       - nbPropVal : Number of property values <br>
//!       - aName     : Property Name <br>
//!       - allTypes  : Property Types <br>
//!       - allValues : Property Values <br>
  Standard_EXPORT     void Init(const Standard_Integer nbPropVal,const Handle(TCollection_HAsciiString)& aName,const Handle(TColStd_HArray1OfInteger)& allTypes,const Handle(TColStd_HArray1OfTransient)& allValues) ;
  //! returns the number of property values <br>
  Standard_EXPORT     Standard_Integer NbPropertyValues() const;
  //! returns property name <br>
  Standard_EXPORT     Handle_TCollection_HAsciiString Name() const;
  //! returns the number of TYPE/VALUE pairs <br>
  Standard_EXPORT     Standard_Integer NbTypeValuePairs() const;
  //! returns the Index'th property value data type <br>
//! raises exception if Index <= 0 or Index > NbTypeValuePairs() <br>
  Standard_EXPORT     Standard_Integer Type(const Standard_Integer Index) const;
  //!    HArray1OfInteger (length 1), HArray1OfReal (length 1) for <br>
//!    Integer, Real, Boolean (= Integer 0/1), <br>
//!    HAsciiString for String (the value itself), <br>
//!    IGESEntity for Entity (the value itself) <br>
  Standard_EXPORT     Handle_Standard_Transient Value(const Standard_Integer Index) const;
  //! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer <br>//!   Error if Index out of Range, or not an Integer <br>
  Standard_EXPORT     Standard_Integer ValueAsInteger(const Standard_Integer ValueNum) const;
  //! Returns Attribute Value <AttrNum, rank ValueNum> as a Real <br>//!   Error if Index out of Range, or not a Real <br>
  Standard_EXPORT     Standard_Real ValueAsReal(const Standard_Integer ValueNum) const;
  //! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer <br>
  Standard_EXPORT     Handle_TCollection_HAsciiString ValueAsString(const Standard_Integer ValueNum) const;
  //! Returns Attribute Value <AttrNum, rank ValueNum> as an Entity <br>//!   Error if Index out of Range, or not a Entity <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity ValueAsEntity(const Standard_Integer ValueNum) const;
  //! Returns Attribute Value <AttrNum, rank ValueNum> as a Boolean <br>//!   Error if Index out of Range, or not a Logical <br>
  Standard_EXPORT     Standard_Boolean ValueAsLogical(const Standard_Integer ValueNum) const;




  DEFINE_STANDARD_RTTI(IGESDefs_GenericData)

protected:




private: 


Standard_Integer theNbPropertyValues;
Handle_TCollection_HAsciiString theName;
Handle_TColStd_HArray1OfInteger theTypes;
Handle_TColStd_HArray1OfTransient theValues;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif