MEDMEM.GIBI_MESH_RDONLY_DRIVER Class Reference

#include <MEDMEM_GibiMeshDriver.hxx>

Inheritance diagram for MEDMEM.GIBI_MESH_RDONLY_DRIVER:

Inheritance graph

Public Member Functions

 GIBI_MESH_RDONLY_DRIVER ()
 GIBI_MESH_RDONLY_DRIVER (const string &fileName, MESH *ptrMesh)
 GIBI_MESH_RDONLY_DRIVER (const GIBI_MESH_RDONLY_DRIVER &driver)
virtual ~GIBI_MESH_RDONLY_DRIVER ()
void write (void) const throw (MEDEXCEPTION)
void read (void) throw (MEDEXCEPTION)
void open ()
void close ()

Protected Member Functions

bool readFile (_intermediateMED *medi, bool readFields)
void fillMesh (_intermediateMED *medi)

Private Member Functions

GENDRIVERcopy (void) const
bool getLine (char *&line)
bool getNextLine (char *&line, bool raiseIfNot=true) throw (MEDEXCEPTION)
void initNameReading (int nbValues, int width=8)
void initIntReading (int nbValues)
void initDoubleReading (int nbValues)
void init (int nbToRead, int nbPosInLine, int width, int shift=0)
bool more () const
void next ()
char * str () const
int index () const
int getInt () const
double getDouble () const
string getName () const

Private Attributes

int _File
char * _start
char * _ptr
char * _eptr
int _lineNb
int _iPos
int _nbPosInLine
int _width
int _shift
int _iRead
int _nbToRead
char * _curPos

Constructor & Destructor Documentation

GIBI_MESH_RDONLY_DRIVER::GIBI_MESH_RDONLY_DRIVER  ) 
 

Constructor.

GIBI_MESH_RDONLY_DRIVER::GIBI_MESH_RDONLY_DRIVER const string &  fileName,
MESH ptrMesh
 

Constructor.

GIBI_MESH_RDONLY_DRIVER::GIBI_MESH_RDONLY_DRIVER const GIBI_MESH_RDONLY_DRIVER driver  ) 
 

Copy constructor.

GIBI_MESH_RDONLY_DRIVER::~GIBI_MESH_RDONLY_DRIVER  )  [virtual]
 

Destructor.


Member Function Documentation

void GIBI_MESH_RDONLY_DRIVER::write void   )  const throw (MEDEXCEPTION) [virtual]
 

Return a MEDEXCEPTION : it is the read-only driver.

Implements MEDMEM.GIBI_MESH_DRIVER.

Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER.

void GIBI_MESH_RDONLY_DRIVER::read void   )  throw (MEDEXCEPTION) [virtual]
 

Read MESH in the specified file.

Implements MEDMEM.GIBI_MESH_DRIVER.

Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER, and MEDMEM.GIBI_MED_RDONLY_DRIVER.

void GIBI_MESH_RDONLY_DRIVER::open  )  [virtual]
 

Implements MEDMEM.GENDRIVER.

Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER.

void GIBI_MESH_RDONLY_DRIVER::close  )  [virtual]
 

Implements MEDMEM.GENDRIVER.

Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER.

bool GIBI_MESH_RDONLY_DRIVER::readFile _intermediateMED medi,
bool  readFields
[protected]
 

void GIBI_MESH_RDONLY_DRIVER::fillMesh _intermediateMED medi  )  [protected]
 

GENDRIVER * GIBI_MESH_RDONLY_DRIVER::copy void   )  const [private, virtual]
 

Implements MEDMEM.GIBI_MESH_DRIVER.

Reimplemented in MEDMEM.GIBI_MESH_RDWR_DRIVER, and MEDMEM.GIBI_MED_RDONLY_DRIVER.

bool GIBI_MESH_RDONLY_DRIVER::getLine char *&  line  )  [private]
 

bool MEDMEM.GIBI_MESH_RDONLY_DRIVER.getNextLine char *&  line,
bool  raiseIfNot = true
throw (MEDEXCEPTION) [private]
 

void MEDMEM.GIBI_MESH_RDONLY_DRIVER.initNameReading int  nbValues,
int  width = 8
[private]
 

void MEDMEM.GIBI_MESH_RDONLY_DRIVER.initIntReading int  nbValues  )  [private]
 

void MEDMEM.GIBI_MESH_RDONLY_DRIVER.initDoubleReading int  nbValues  )  [private]
 

void GIBI_MESH_RDONLY_DRIVER::init int  nbToRead,
int  nbPosInLine,
int  width,
int  shift = 0
[private]
 

bool MEDMEM.GIBI_MESH_RDONLY_DRIVER.more  )  const [private]
 

void GIBI_MESH_RDONLY_DRIVER::next  )  [private]
 

char* MEDMEM.GIBI_MESH_RDONLY_DRIVER.str  )  const [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER.index  )  const [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER.getInt  )  const [private]
 

double MEDMEM.GIBI_MESH_RDONLY_DRIVER.getDouble  )  const [private]
 

string GIBI_MESH_RDONLY_DRIVER::getName  )  const [private]
 


Field Documentation

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._File [private]
 

char* MEDMEM.GIBI_MESH_RDONLY_DRIVER._start [private]
 

char* MEDMEM.GIBI_MESH_RDONLY_DRIVER._ptr [private]
 

char* MEDMEM.GIBI_MESH_RDONLY_DRIVER._eptr [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._lineNb [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._iPos [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._nbPosInLine [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._width [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._shift [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._iRead [private]
 

int MEDMEM.GIBI_MESH_RDONLY_DRIVER._nbToRead [private]
 

char* MEDMEM.GIBI_MESH_RDONLY_DRIVER._curPos [private]