5 #include "MEDMEM_Support.hxx"
7 class FAMILY : public SUPPORT
10 /*! Identifier of the family in the mesh
11 Note : There is precisely one for each family. */
13 /*! Number of attribute of the family */
14 int _numberOfAttribute ;
15 /*! Array of all attributes' identifiers.
16 There is one for each attribute. */
17 int * _attributeIdentifier ;
18 /*! Array of all attributes' values.
19 There is one for each attribute. */
20 int * _attributeValue ;
21 /*! Array of all attributes' descriptions.
22 There is one for each attribute. */
23 string * _attributeDescription ;
25 /*! Number of the group the family belongs to */
27 /*! Name of the group the family belongs to */
33 // constructor to use with med driver
34 FAMILY(MESH* Mesh, int Identifier, string Name, int NumberOfAttribute,int *AttributeIdentifier,int *AttributeValue,string AttributeDescription,int NumberOfGroup,string GroupName) ;
37 FAMILY & operator=(const FAMILY &fam);
39 inline void setIdentifier (int Identifier);
40 inline void setNumberOfAttributes (int NumberOfAttribute);
41 inline void setAttributesIdentifiers (int * AttributeIdentifier);
42 inline void setAttributesValues (int * AttributeValue);
43 inline void setAttributesDescriptions (string * AttributeDescription);
44 inline void setNumberOfGroups (int NumberOfGroups);
45 inline void setGroupsNames (string * GroupName);
47 inline int getIdentifier() const;
48 inline int getNumberOfAttributes() const;
49 inline int * getAttributesIdentifiers() const;
50 inline int * getAttributesValues() const;
51 inline string * getAttributesDescriptions() const;
52 inline int getNumberOfGroups() const;
53 inline string * getGroupsNames() const;
55 // A FAIRE : VERIFIER LA VALIDITE DES PARAMETRES !
56 inline int getAttributeIdentifier(int i) const;
57 inline int getAttributeValue(int i) const;
58 inline string getAttributeDescription(int i) const;
59 inline string getGroupName(int i) const;
64 /* Set the attribute _identifier to Identifier. */
65 //----------------------------------------------
66 inline void FAMILY::setIdentifier(int Identifier)
67 //----------------------------------------------
69 _identifier = Identifier;
72 /* Set the attribute _numberOfAttribute to NumberOfAttribute. */
73 //--------------------------------------------------------------
74 inline void FAMILY::setNumberOfAttributes(int NumberOfAttribute)
75 //--------------------------------------------------------------
77 _numberOfAttribute = NumberOfAttribute;
80 /* Set the attribute _attributeIdentifier to AttributeIdentifier. */
81 //---------------------------------------------------------------------
82 inline void FAMILY::setAttributesIdentifiers(int * AttributeIdentifier)
83 //---------------------------------------------------------------------
85 _attributeIdentifier = AttributeIdentifier ;
88 /* Set the attribute _attributeValue to AttributeValue. */
89 //-----------------------------------------------------------
90 inline void FAMILY::setAttributesValues(int * AttributeValue)
91 //-----------------------------------------------------------
93 _attributeValue = AttributeValue ;
96 /* Set the attribute _identifier to Identifier. */
97 //--------------------------------------------------------------------------
98 inline void FAMILY::setAttributesDescriptions(string * AttributeDescription)
99 //--------------------------------------------------------------------------
101 _attributeDescription = AttributeDescription ;
104 /* Set the attribute _identifier to Identifier. */
105 //-------------------------------------------------------
106 inline void FAMILY::setNumberOfGroups(int NumberOfGroups)
107 //-------------------------------------------------------
109 _numberOfGroup = NumberOfGroups ;
112 /* Set the attribute _identifier to Identifier. */
113 //----------------------------------------------------
114 inline void FAMILY::setGroupsNames(string * GroupName)
115 //----------------------------------------------------
117 _groupName = GroupName ;
119 //--------------------------------------
120 inline int FAMILY::getIdentifier() const
121 //--------------------------------------
125 //----------------------------------------------
126 inline int FAMILY::getNumberOfAttributes() const
127 //----------------------------------------------
129 return _numberOfAttribute ;
131 //---------------------------------------------------
132 inline int * FAMILY::getAttributesIdentifiers() const
133 //---------------------------------------------------
135 return _attributeIdentifier ;
137 //----------------------------------------------------
138 inline int FAMILY::getAttributeIdentifier(int i) const
139 //----------------------------------------------------
141 return _attributeIdentifier[i-1] ;
143 //----------------------------------------------
144 inline int * FAMILY::getAttributesValues() const
145 //----------------------------------------------
147 return _attributeValue ;
149 //-----------------------------------------------
150 inline int FAMILY::getAttributeValue(int i) const
151 //-----------------------------------------------
153 return _attributeValue[i-1] ;
155 //-------------------------------------------------------
156 inline string * FAMILY::getAttributesDescriptions() const
157 //-------------------------------------------------------
159 return _attributeDescription ;
161 //--------------------------------------------------------
162 inline string FAMILY::getAttributeDescription(int i) const
163 //--------------------------------------------------------
165 return _attributeDescription[i-1] ;
167 //------------------------------------------
168 inline int FAMILY::getNumberOfGroups() const
169 //------------------------------------------
171 return _numberOfGroup;
173 //--------------------------------------------
174 inline string * FAMILY::getGroupsNames() const
175 //--------------------------------------------
179 //---------------------------------------------
180 inline string FAMILY::getGroupName(int i) const
181 //---------------------------------------------
183 return _groupName[i-1] ;
187 #endif /* FAMILY_HXX */