summaryrefslogtreecommitdiff
path: root/inc/IGESDefs_AttributeTable.hxx
blob: 1c79a0bd18b3c69d8ff883b0dac21cefacea8a40 (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
// 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_AttributeTable_HeaderFile
#define _IGESDefs_AttributeTable_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESDefs_AttributeTable_HeaderFile
#include <Handle_IGESDefs_AttributeTable.hxx>
#endif

#ifndef _Handle_TColStd_HArray2OfTransient_HeaderFile
#include <Handle_TColStd_HArray2OfTransient.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Handle_IGESDefs_AttributeDef_HeaderFile
#include <Handle_IGESDefs_AttributeDef.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_TCollection_HAsciiString_HeaderFile
#include <Handle_TCollection_HAsciiString.hxx>
#endif
#ifndef _Handle_IGESData_IGESEntity_HeaderFile
#include <Handle_IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TColStd_HArray2OfTransient;
class Standard_OutOfRange;
class Standard_NullObject;
class IGESDefs_AttributeDef;
class Standard_Transient;
class TCollection_HAsciiString;
class IGESData_IGESEntity;


//! defines IGES Attribute Table, Type <422> Form <0, 1> <br>
//!          in package IGESDefs <br>
//!          This class is used to represent an occurence of <br>
//!          Attribute Table. This Class may be independent <br>
//!          or dependent or pointed at by other Entities. <br>
class IGESDefs_AttributeTable : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESDefs_AttributeTable();
  //! This method is used to set the fields of the class <br>
//!           AttributeTable <br>
//!       - attributes : Attribute instances, created as <br>
//!          (1,NbAttributes,1,NbRows) <br>
//!       - NbRows = 1 is a particular case (Form 0) <br>
  Standard_EXPORT     void Init(const Handle(TColStd_HArray2OfTransient)& attributes) ;
  //! Sets a Definition as Structure information <br>
//!           (works by calling InitMisc) <br>
  Standard_EXPORT     void SetDefinition(const Handle(IGESDefs_AttributeDef)& def) ;
  //! Return the Structure information in Directory Entry, <br>
//! casted as an AttributeDef <br>
  Standard_EXPORT     Handle_IGESDefs_AttributeDef Definition() const;
  //! returns Number of Rows. Remark that it is always 1 if Form = 0 <br>
//! It means that the list of Attributes (by their number, and for each <br>
//! one its type and ValueCount) is repeated <NbRows> times <br>
  Standard_EXPORT     Standard_Integer NbRows() const;
  //! returns Number of Attributes <br>
  Standard_EXPORT     Standard_Integer NbAttributes() const;
  //! returns the Type of an Attribute, given its No. : it is read in the <br>
//! Definition. <br>
//!  (1 : Integer, 2 : Real, 3 : String, 4 : Entity, 6 : Logical) <br>
  Standard_EXPORT     Standard_Integer DataType(const Standard_Integer Atnum) const;
  //! returns the Count of Value for an Attribute, given its No. : <br>
//! it is read in the Definition. <br>
  Standard_EXPORT     Standard_Integer ValueCount(const Standard_Integer Atnum) const;
  
  Standard_EXPORT     Handle_Standard_Transient AttributeList(const Standard_Integer Attribnum,const Standard_Integer Rownum) const;
  //! Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Integer <br>//!   Error if Indices out of Range, or no Value defined, or not an Integer <br>
  Standard_EXPORT     Standard_Integer AttributeAsInteger(const Standard_Integer AtNum,const Standard_Integer Rownum,const Standard_Integer ValNum) const;
  //! Returns Attribute Value <AtNum, Rownum, rank ValNum> as a Real <br>//!   Error if Indices out of Range, or no Value defined, or not a Real <br>
  Standard_EXPORT     Standard_Real AttributeAsReal(const Standard_Integer AtNum,const Standard_Integer Rownum,const Standard_Integer ValNum) const;
  //! Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Integer <br>
  Standard_EXPORT     Handle_TCollection_HAsciiString AttributeAsString(const Standard_Integer AtNum,const Standard_Integer Rownum,const Standard_Integer ValNum) const;
  //! Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Entity <br>//!   Error if Indices out of Range, or no Value defined, or not an Entity <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity AttributeAsEntity(const Standard_Integer AtNum,const Standard_Integer Rownum,const Standard_Integer ValNum) const;
  //! Returns Attribute Value <AtNum, Rownum, rank ValNum> as a Boolean <br>//!   Error if Indices out of Range, or no Value defined, or not a Logical <br>
  Standard_EXPORT     Standard_Boolean AttributeAsLogical(const Standard_Integer AtNum,const Standard_Integer Rownum,const Standard_Integer ValNum) const;




  DEFINE_STANDARD_RTTI(IGESDefs_AttributeTable)

protected:




private: 


Handle_TColStd_HArray2OfTransient theAttributes;


};





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


#endif