_groupName= (string*) NULL;
};
-FAMILY::FAMILY(FAMILY & m):SUPPORT(m)
-{
- _identifier = m._identifier;
- _numberOfAttribute = m._numberOfAttribute;
- if (m._attributeIdentifier != NULL)
- {
- _attributeIdentifier = new int[m._numberOfAttribute];
- memcpy(_attributeIdentifier,m._attributeIdentifier,m._numberOfAttribute*sizeof(int));
- }
- else
- _attributeIdentifier = (int *) NULL;
- if (m._attributeValue != NULL)
- {
- _attributeValue = new int[m._numberOfAttribute];
- memcpy(_attributeValue,m._attributeValue,m._numberOfAttribute*sizeof(int));
- }
- else
- _attributeValue = (int *) NULL;
- if (m._attributeDescription != NULL)
- {
- _attributeDescription = new string[m._numberOfAttribute];
- for (int i=0;i<m._numberOfAttribute;i++)
- _attributeDescription[i] = m._attributeDescription[i];
- }
- else
- _attributeDescription = (string *) NULL;
- _numberOfGroup = m._numberOfGroup;
- if (m._groupName != NULL)
- {
- _groupName = new string[m._numberOfGroup];
- for (int i=0;i<m._numberOfGroup;i++)
- _groupName[i]=m._groupName[i];
- }
- else
- _groupName = (string *) NULL;
-};
-
FAMILY::~FAMILY()
{
MESSAGE("~FAMILY()");
// Add your personnal driver line (step 2)
friend class MED_MESH_RDONLY_DRIVER;
friend class MED_MESH_WRONLY_DRIVER;
- friend class MED_MED_DRIVER;
friend class MED_MED_RDONLY_DRIVER;
friend class MED_MED_WRONLY_DRIVER;
}
-// This method is MED specific : don't use it
-// must be private.
-inline void MESH::read(const MED_MED_DRIVER & genDriver)
-{
- const char * LOC = "MESH::read(const MED_MED_DRIVER & genDriver): ";
- BEGIN_OF(LOC);
-
- for (int index=0; index < _drivers.size(); index++ )
- if ( *_drivers[index] == genDriver ) {
- _drivers[index]->open();
- _drivers[index]->read();
- _drivers[index]->close();
- // ? FINALEMENT PAS BESOIN DE L'EXCEPTION ?
- }
-
- END_OF(LOC);
-
-}
-
/*! Set the MESH name */
inline void MESH::setName(string name)
{