Version: 6.3.1
Data Structures | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

MEDMEM.GIBI_MESH_WRONLY_DRIVER Class Reference

#include <MEDMEM_GibiMeshDriver.hxx>

Inheritance diagram for MEDMEM.GIBI_MESH_WRONLY_DRIVER:
Inheritance graph

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)
GENDRIVERcopy (void) const

Private Attributes

map< const SUPPORT *, supportData_supports

Detailed Description

Driver Med for MESH : Write only.

Implement write method.


Constructor & Destructor Documentation

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.


Member Function Documentation

void GIBI_MESH_WRONLY_DRIVER::write ( void  ) const throw (MEDEXCEPTION) [virtual]
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]
void GIBI_MESH_WRONLY_DRIVER::close ( void  ) [virtual]
bool GIBI_MESH_WRONLY_DRIVER::addSupport ( const SUPPORT support) [protected]
int GIBI_MESH_WRONLY_DRIVER::getSubMeshIdAndSize ( const SUPPORT support,
std::list< std::pair< int, int > > &  idsAndSizes 
) const [protected]
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]
void GIBI_MESH_WRONLY_DRIVER::writeNames ( std::map< std::string, int > &  nameMap) [protected]
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]

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS