Version: 6.3.1
Public Member Functions | Protected Attributes | Private Member Functions

MEDMEM.VTK_FIELD_DRIVER< T > Class Template Reference

#include <MEDMEM_VtkFieldDriver.hxx>

Inheritance diagram for MEDMEM.VTK_FIELD_DRIVER< T >:
Inheritance graph

Public Member Functions

 VTK_FIELD_DRIVER ()
template<class INTERLACING_TAG >
 VTK_FIELD_DRIVER (const std::string &fileName, const FIELD< T, INTERLACING_TAG > *ptrField)
 VTK_FIELD_DRIVER (const VTK_FIELD_DRIVER &fieldDriver)
 ~VTK_FIELD_DRIVER ()
void openConst (bool append=false) const throw (MEDEXCEPTION)
void openConstAppend () const throw (MEDEXCEPTION)
void open () throw (MEDEXCEPTION)
void openAppend () throw (MEDEXCEPTION)
void closeConst () const throw (MEDEXCEPTION)
void close ()
void setFieldName (const string &fieldName)
string getFieldName () const
void read (void) throw (MEDEXCEPTION)
void write (void) const throw (MEDEXCEPTION)
 Write.
void writeAppend (void) const throw (MEDEXCEPTION)
 Write append.

Protected Attributes

const FIELD< T > * _ptrField
std::string _fieldName
int _fieldNum
ofstream * _vtkFile
_VTK_BinaryWriter_binaryFile

Private Member Functions

GENDRIVERcopy (void) const

template<class T>
class MEDMEM::VTK_FIELD_DRIVER< T >


Constructor & Destructor Documentation

template<class T>
MEDMEM.VTK_FIELD_DRIVER< T >.VTK_FIELD_DRIVER ( )

Constructor.

References BEGIN_OF_MED, and END_OF_MED.

template<class T>
template<class INTERLACING_TAG >
MEDMEM.VTK_FIELD_DRIVER< T >.VTK_FIELD_DRIVER ( const std::string &  fileName,
const FIELD< T, INTERLACING_TAG > *  ptrField 
)

Constructor.

References BEGIN_OF_MED, and END_OF_MED.

template<class T>
MEDMEM.VTK_FIELD_DRIVER< T >.VTK_FIELD_DRIVER ( const VTK_FIELD_DRIVER< T > &  fieldDriver)

Copy constructor.

template<class T>
MEDMEM.VTK_FIELD_DRIVER< T >.~VTK_FIELD_DRIVER ( )

Member Function Documentation

template<class T>
void MEDMEM.VTK_FIELD_DRIVER< T >.openConst ( bool  append = false) const throw (MEDEXCEPTION)
template<class T>
void MEDMEM.VTK_FIELD_DRIVER< T >.openConstAppend ( ) const throw (MEDEXCEPTION)
template<class T>
void MEDMEM.VTK_FIELD_DRIVER< T >.open ( void  ) throw (MEDEXCEPTION) [virtual]
template<class T>
void MEDMEM.VTK_FIELD_DRIVER< T >.openAppend ( void  ) throw (MEDEXCEPTION) [virtual]
template<class T>
void MEDMEM.VTK_FIELD_DRIVER< T >.closeConst ( ) const throw (MEDEXCEPTION)
template<class T>
void MEDMEM.VTK_FIELD_DRIVER< T >.close ( void  ) [virtual]
template<class T >
void MEDMEM.VTK_FIELD_DRIVER< T >::setFieldName ( const string &  fieldName) [virtual]

Set the name of the FIELD asked in file.

It could be different than the name of the FIELD object.

Reimplemented from MEDMEM.GENDRIVER.

References MEDMEM.VTK_FIELD_DRIVER< T >._fieldName, and Med_Gen_test.fieldName.

template<class T >
string MEDMEM.VTK_FIELD_DRIVER< T >::getFieldName ( ) const [virtual]

Get the name of the FIELD asked in file.

Reimplemented from MEDMEM.GENDRIVER.

References MEDMEM.VTK_FIELD_DRIVER< T >._fieldName.

template<class T >
void MEDMEM.VTK_FIELD_DRIVER< T >::read ( void  ) throw (MEDEXCEPTION) [virtual]

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

Implements MEDMEM.GENDRIVER.

template<class T >
void MEDMEM.VTK_FIELD_DRIVER< T >::write ( void  ) const throw (MEDEXCEPTION) [virtual]

Write.

Write FIELD in the specified file, with its mesh through its support which has to be on all entities (excluding the faces in 3d and edges in 2d).

Implements MEDMEM.GENDRIVER.

References MEDMEM.GENDRIVER._fileName, MEDMEM.VTK_FIELD_DRIVER< T >._ptrField, BEGIN_OF_MED, MEDMEM.SUPPORT.getMesh(), MEDMEM.FIELD_.getSupport(), LOCALIZED, test_gibi.meshDriver, MEDMEM.VTK_MESH_DRIVER.write(), and MEDMEM.VTK_FIELD_DRIVER< T >.writeAppend().

template<class T >
void MEDMEM.VTK_FIELD_DRIVER< T >::writeAppend ( void  ) const throw (MEDEXCEPTION) [virtual]

Write append.

Write FIELD in the specified file, the mesh is supposed to be written in this file. The field support has to be on all entities (excluding the faces in 3d and edges in 2d).

Reimplemented from MEDMEM.GENDRIVER.

References MEDMEM.VTK_FIELD_DRIVER< T >._binaryFile, MEDMEM.GENDRIVER._fileName, MEDMEM.VTK_FIELD_DRIVER< T >._ptrField, MEDMEM.VTK_FIELD_DRIVER< T >._vtkFile, MEDMEM.ArrayConvert(), MEDMEM.ArrayConvert2No(), BEGIN_OF_MED, MEDMEM.VTK_FIELD_DRIVER< T >.close(), MEDMEM.VTK_FIELD_DRIVER< T >.closeConst(), Med_Gen_test.dt, END_OF_MED, Med_Gen_test.entitySupport, MEDMEM.FIELD< T, INTERLACING_TAG >.getArray(), MEDMEM.SUPPORT.getEntity(), MEDMEM.FIELD< T, INTERLACING_TAG >.getGaussPresence(), MEDMEM.FIELD_.getInterlacingType(), MEDMEM.FIELD_.getIterationNumber(), MEDMEM.SUPPORT.getMesh(), MEDMEM.FIELD_.getName(), MEDMEM.FIELD_.getNumberOfComponents(), MEDMEM.SUPPORT.getNumberOfElements(), MEDMEM.GMESH.getNumberOfElements(), MEDMEM.GMESH.getNumberOfNodes(), MEDMEM.FIELD_.getOrderNumber(), MEDMEM.MEDMEM_Array< ARRAY_ELEMENT_TYPE, INTERLACING_POLICY, CHECKING_POLICY >.getPtr(), MEDMEM.FIELD_.getSupport(), MEDMEM.FIELD< T, INTERLACING_TAG >.getValue(), MEDMEM.FIELD_.getValueType(), MEDMEM.SUPPORT.isOnAllElements(), Med_Gen_test.it, LOCALIZED, MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MED_EXCEPTION, MED_EN.MED_FULL_INTERLACE, MED_EN.MED_INT32, MED_EN.MED_NO_INTERLACE_BY_TYPE, MED_EN.MED_NODE, MED_EN.MED_REEL64, medClient_test.name, MEDMEM.VTK_FIELD_DRIVER< T >.open(), MEDMEM.VTK_FIELD_DRIVER< T >.openConstAppend(), MEDMEM.VTK_FIELD_DRIVER< T >.read(), SCRUTE_MED, batchmode_medcorba_test.value, test_gibi.vtkFile, and MEDMEM._VTK_BinaryWriter.write().

template<class T >
GENDRIVER * MEDMEM.VTK_FIELD_DRIVER< T >::copy ( void  ) const [private, virtual]

Implements MEDMEM.GENDRIVER.


Field Documentation

template<class T>
const FIELD<T>* MEDMEM.VTK_FIELD_DRIVER< T >._ptrField [protected]
template<class T>
std::string MEDMEM.VTK_FIELD_DRIVER< T >._fieldName [protected]
template<class T>
int MEDMEM.VTK_FIELD_DRIVER< T >._fieldNum [protected]
template<class T>
ofstream* MEDMEM.VTK_FIELD_DRIVER< T >._vtkFile [mutable, protected]
template<class T>
_VTK_BinaryWriter* MEDMEM.VTK_FIELD_DRIVER< T >._binaryFile [mutable, protected]
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