#include <MEDMEM_GibiMeshDriver.hxx>

Data Structures | |
| struct | supportData |
| struct | typeData |
Public Member Functions | |
| GIBI_MESH_WRONLY_DRIVER () | |
| GIBI_MESH_WRONLY_DRIVER (const string &fileName, GMESH *ptrMesh) | |
| GIBI_MESH_WRONLY_DRIVER (const GIBI_MESH_WRONLY_DRIVER &driver) | |
| virtual | ~GIBI_MESH_WRONLY_DRIVER () |
| void | write (void) const throw (MEDEXCEPTION) |
| void | read (void) throw (MEDEXCEPTION) |
| void | open () |
| void | close () |
Protected Member Functions | |
| bool | addSupport (const SUPPORT *support) |
| int | getSubMeshIdAndSize (const SUPPORT *support, std::list< std::pair< int, int > > &idsAndSizes) const |
| void | writeSupportsAndMesh (list< nameGIBItoMED > &listGIBItoMED_mail) |
| void | writeMEDNames (const std::list< nameGIBItoMED > &listGIBItoMED_mail, const std::list< nameGIBItoMED > &listGIBItoMED_cham, const std::list< nameGIBItoMED > &listGIBItoMED_comp) |
| void | writeLastRecord () |
| void | writeNames (std::map< std::string, int > &nameMap) |
Static Protected Member Functions | |
| static void | addName (std::map< std::string, int > &nameMap, std::map< std::string, int > &namePrefixesMap, const std::string &name, int index) |
Protected Attributes | |
| fstream | _gibi |
Private Member Functions | |
| void | writeElements (MED_EN::medGeometryElement geomType, list< typeData > &typeDataList, const int *nodalConnect, const int *nodalConnectIndex) |
| GENDRIVER * | copy (void) const |
Private Attributes | |
| map< const SUPPORT *, supportData > | _supports |
Driver Med for MESH : Write only.
Implement write method.
| GIBI_MESH_WRONLY_DRIVER::GIBI_MESH_WRONLY_DRIVER | ( | ) |
Constructor.
| GIBI_MESH_WRONLY_DRIVER::GIBI_MESH_WRONLY_DRIVER | ( | const string & | fileName, |
| GMESH * | ptrMesh | ||
| ) |
Constructor.
References MESSAGE_MED.
| GIBI_MESH_WRONLY_DRIVER::GIBI_MESH_WRONLY_DRIVER | ( | const GIBI_MESH_WRONLY_DRIVER & | driver | ) |
Copy constructor.
| GIBI_MESH_WRONLY_DRIVER::~GIBI_MESH_WRONLY_DRIVER | ( | ) | [virtual] |
Destructor.
| void GIBI_MESH_WRONLY_DRIVER::write | ( | void | ) | const throw (MEDEXCEPTION) [virtual] |
Write MESH in the specified file.
Implements MEDMEM.GIBI_MESH_DRIVER.
Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER, and MEDMEM.GIBI_MED_WRONLY_DRIVER.
References BEGIN_OF_MED, END_OF_MED, MEDMEM.GIBI_MESH_WRONLY_DRIVER.writeLastRecord(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.writeMEDNames(), and MEDMEM.GIBI_MESH_WRONLY_DRIVER.writeSupportsAndMesh().
| void GIBI_MESH_WRONLY_DRIVER::read | ( | void | ) | throw (MEDEXCEPTION) [virtual] |
Return a MEDEXCEPTION : it is the write-only driver.
Implements MEDMEM.GIBI_MESH_DRIVER.
Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER.
| void GIBI_MESH_WRONLY_DRIVER::open | ( | void | ) | [virtual] |
Implements MEDMEM.GENDRIVER.
Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER.
References MEDMEM.GENDRIVER._fileName, MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi, MEDMEM.GENDRIVER._status, BEGIN_OF_MED, END_OF_MED, MEDMEM.GENDRIVER.getAccessMode(), LOCALIZED, MED_EN.MED_CLOSED, MED_EN.MED_OPENED, MED_EN.RDWR, and MED_EN.WRONLY.
| void GIBI_MESH_WRONLY_DRIVER::close | ( | void | ) | [virtual] |
Implements MEDMEM.GENDRIVER.
Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER.
References MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi, MEDMEM.GENDRIVER._status, BEGIN_OF_MED, END_OF_MED, MED_EN.MED_CLOSED, and MED_EN.MED_OPENED.
| bool GIBI_MESH_WRONLY_DRIVER::addSupport | ( | const SUPPORT * | support | ) | [protected] |
Add a support to write. Return true if a support will be written
References MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData._cleanName, MEDMEM.GIBI_MESH_DRIVER._mesh, MEDMEM.GIBI_MESH_WRONLY_DRIVER._supports, MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.addTypeData(), cleanName(), med_opsupp_test.entity, MEDMEM.MESH.existConnectivity(), MEDMEM.SUPPORT.getEntity(), MEDMEM.GROUP.getFamily(), MEDMEM.MESH.getGlobalNumberingIndex(), MEDMEM.SUPPORT.getMesh(), MEDMEM.SUPPORT.getName(), MEDMEM.GMESH.getNumberOfElements(), MEDMEM.GROUP.getNumberOfFamilies(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.getNumberOfTypes(), MEDMEM.GMESH.getNumberOfTypes(), MEDMEM.SUPPORT.getNumberOfTypes(), MEDMEM.GMESH.getTypes(), med_test1.group, INFOS_MED, MEDMEM.SUPPORT.isOnAllElements(), LOCALIZED, MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_HEXA20, MED_EN.MED_NODAL, MED_EN.MED_NODE, MED_EN.MED_POINT1, MED_test2.mesh, Med_Gen_test.nbFam, medClient_test.support, and medClient_test.types.
| int GIBI_MESH_WRONLY_DRIVER::getSubMeshIdAndSize | ( | const SUPPORT * | support, |
| std::list< std::pair< int, int > > & | idsAndSizes | ||
| ) | const [protected] |
return submesh id and size for a support. Call it after writeSupportsAndMesh()
References MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData._id, MEDMEM.GIBI_MESH_WRONLY_DRIVER._supports, MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData._types, MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.getNumberObjects(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.getNumberOfTypes(), and test_NonCoincidentDEC.size.
| void GIBI_MESH_WRONLY_DRIVER::writeSupportsAndMesh | ( | list< nameGIBItoMED > & | listGIBItoMED_mail | ) | [protected] |
Write MESH and _supports.
References MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData._cleanName, MEDMEM.GENDRIVER._fileName, MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi, MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData._id, MEDMEM.GIBI_MESH_DRIVER._mesh, MEDMEM.GENDRIVER._status, MEDMEM.GIBI_MESH_WRONLY_DRIVER._supports, MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData._types, MEDMEM.GIBI_MESH_WRONLY_DRIVER.addName(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.addSupport(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.addTypeData(), BEGIN_OF_MED, MEDMEM.GMESH.convertInMESH(), coords, END_OF_MED, med_opsupp_test.entity, MEDMEM.MESH.existConnectivity(), MEDMEM.MESH.getConnectivity(), MEDMEM.MESH.getConnectivityIndex(), MEDMEM.MESH.getConnectivityptr(), MEDMEM.MESH.getCoordinates(), MEDMEM.CONNECTIVITY.getEntity(), MEDMEM.MESH.getGlobalNumberingIndex(), MEDMEM.GMESH.getGroup(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.getNumberObjects(), MEDMEM.GMESH.getNumberOfElements(), MEDMEM.GMESH.getNumberOfGroups(), MEDMEM.GMESH.getNumberOfNodes(), MEDMEM.GIBI_MESH_WRONLY_DRIVER.supportData.getNumberOfTypes(), MEDMEM.GMESH.getNumberOfTypes(), MEDMEM.GMESH.getSpaceDimension(), MEDMEM.GMESH.getTypes(), MEDMEM.nameGIBItoMED.gibi_id, MEDMEM.nameGIBItoMED.gibi_pile, TFieldCounter.init(), MEDMEM.SUPPORT.isOnAllElements(), LOCALIZED, MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_ALL_ENTITIES, MED_EN.MED_CELL, MED_EN.MED_FULL_INTERLACE, MED_EN.MED_HEXA20, MEDMEM.nameGIBItoMED.med_name, MED_EN.MED_NODAL, MED_EN.MED_NODE, MED_EN.MED_OPENED, MED_test2.mesh, MESSAGE_MED, batchmode_medcorba_test.nbNodes, PILE_SOUS_MAILLAGE, TFieldCounter.stop(), medClient_test.support, medClient_test.types, MEDMEM.GIBI_MESH_WRONLY_DRIVER.writeElements(), and MEDMEM.GIBI_MESH_WRONLY_DRIVER.writeNames().
| void GIBI_MESH_WRONLY_DRIVER::writeMEDNames | ( | const std::list< nameGIBItoMED > & | listGIBItoMED_mail, |
| const std::list< nameGIBItoMED > & | listGIBItoMED_cham, | ||
| const std::list< nameGIBItoMED > & | listGIBItoMED_comp | ||
| ) | [protected] |
Store MED names of supports and fields. All MED names are written in STRINGS PILE, and the correspondence between GIBI and MED names is written as TABLE "noms_med"
References MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi, and TFieldCounter.stop().
| void GIBI_MESH_WRONLY_DRIVER::writeLastRecord | ( | ) | [protected] |
Write the record closing file
References MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi.
| void GIBI_MESH_WRONLY_DRIVER::addName | ( | std::map< std::string, int > & | nameMap, |
| std::map< std::string, int > & | namePrefixesMap, | ||
| const std::string & | name, | ||
| int | index | ||
| ) | [static, protected] |
References cleanName(), medClient_test.index, INFOS_MED, Med_Gen_test.it, and medClient_test.name.
| void GIBI_MESH_WRONLY_DRIVER::writeNames | ( | std::map< std::string, int > & | nameMap | ) | [protected] |
References MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi, TFieldCounter.init(), and TFieldCounter.stop().
| void GIBI_MESH_WRONLY_DRIVER::writeElements | ( | MED_EN::medGeometryElement | geomType, |
| list< typeData > & | typeDataList, | ||
| const int * | nodalConnect, | ||
| const int * | nodalConnectIndex | ||
| ) | [private] |
| GENDRIVER * GIBI_MESH_WRONLY_DRIVER::copy | ( | void | ) | const [private, virtual] |
Implements MEDMEM.GIBI_MESH_DRIVER.
Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER, and MEDMEM.GIBI_MED_WRONLY_DRIVER.
References MEDMEM.GIBI_MESH_WRONLY_DRIVER.GIBI_MESH_WRONLY_DRIVER().
fstream MEDMEM.GIBI_MESH_WRONLY_DRIVER._gibi [protected] |
map<const SUPPORT*, supportData> MEDMEM.GIBI_MESH_WRONLY_DRIVER._supports [private] |