Back to index

salome-med  6.5.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Friends
MEDMEM_ENSIGHT::MEDMEM_EXPORT Protocol Reference

Base of all Ensight drivers. More...

#include <MEDMEM_EnsightUtils.hxx>

Collaboration diagram for MEDMEM_ENSIGHT::MEDMEM_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int getPartNumber (const SUPPORT *support) const
 < return part number to write support with, zero in failure case
 ~_CaseFileDriver_User ()
void merge (const GENDRIVER &driver)

Static Public Member Functions

static bool canOpenFile (const string &fileName, med_mode_acces mode)
static void getSupportNodes (const SUPPORT *sup, map< int, int > &nodeIds)
 analyse if data file is binary
static bool isBinaryDataFile (const string &dataFileName)
static bool isTimeStepBeginning (const string &line)
static bool isTimeStepEnd (const char *line)
static bool isToWriteEntity (const medEntityMesh entity, const GMESH *mesh)

Protected Member Functions

 _CaseFileDriver_User (const std::string &caseFileName="", MED_EN::med_mode_acces mode=MED_EN::RDWR)
const std::string & getCaseFileName () const
const std::string & getDataFileName () const
bool isGoldFormat () const
 returns true if there are several meshes/fields in a data file
bool isSingleFileMode () const
 index of meshes/fields in a data file, zero for static mesh/feild
int getIndexInDataFile () const
 true if there are time steps, i.e.
bool isTransientMode () const
 time of a step
double getTime () const
void setInterData (_InterMed *imed)
 < for mesh driver to store data
_InterMedgetInterData ()
_SubPartgetSubPart (const _SubPartDesc &descriptor) throw (MEDEXCEPTION)
_SupportgetSupport (const _SupportDesc &descriptor, const medEntityMesh entity) throw (MEDEXCEPTION)

Private Attributes

std::string _dataFileName
bool _isGoldFormat
bool _transientMode
 true if there are time steps
bool _singleFileMode
 only one or several meshes/fields in a data file
int _indexInDataFile
 which meshes/fields in a data file
std::string _time
 time of a step
_InterMed_imed
 to be used by field driver
string _imedMapKey
 key in the map storing mesh data for usage by field drv

Friends

class _CaseFileDriver

Detailed Description

Base of all Ensight drivers.

It stores data passed from case file

Definition at line 365 of file MEDMEM_EnsightUtils.hxx.


Constructor & Destructor Documentation

MEDMEM_ENSIGHT::MEDMEM_EXPORT::~_CaseFileDriver_User ( )

Member Function Documentation

MEDMEM_ENSIGHT::MEDMEM_EXPORT::_CaseFileDriver_User ( const std::string &  caseFileName = "",
MED_EN::med_mode_acces  mode = MED_EN::RDWR 
) [protected]
static bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::canOpenFile ( const string &  fileName,
med_mode_acces  mode 
) [static]
const std::string& MEDMEM_ENSIGHT::MEDMEM_EXPORT::getCaseFileName ( ) const [inline, protected]

Definition at line 372 of file MEDMEM_EnsightUtils.hxx.

const std::string& MEDMEM_ENSIGHT::MEDMEM_EXPORT::getDataFileName ( ) const [inline, protected]

Definition at line 374 of file MEDMEM_EnsightUtils.hxx.

{ return _dataFileName; }
int MEDMEM_ENSIGHT::MEDMEM_EXPORT::getIndexInDataFile ( ) const [inline, protected]

true if there are time steps, i.e.

getTime() has sense

Definition at line 382 of file MEDMEM_EnsightUtils.hxx.

_InterMed* MEDMEM_ENSIGHT::MEDMEM_EXPORT::getInterData ( ) [protected]
int MEDMEM_ENSIGHT::MEDMEM_EXPORT::getPartNumber ( const SUPPORT support) const

< return part number to write support with, zero in failure case

_SubPart* MEDMEM_ENSIGHT::MEDMEM_EXPORT::getSubPart ( const _SubPartDesc descriptor) throw (MEDEXCEPTION) [protected]
_Support* MEDMEM_ENSIGHT::MEDMEM_EXPORT::getSupport ( const _SupportDesc descriptor,
const medEntityMesh  entity 
) throw (MEDEXCEPTION) [protected]
static void MEDMEM_ENSIGHT::MEDMEM_EXPORT::getSupportNodes ( const SUPPORT sup,
map< int, int > &  nodeIds 
) [static]

analyse if data file is binary

double MEDMEM_ENSIGHT::MEDMEM_EXPORT::getTime ( ) const [inline, protected]

Definition at line 388 of file MEDMEM_EnsightUtils.hxx.

{ return atof(_time.c_str()); }
static bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isBinaryDataFile ( const string &  dataFileName) [static]
bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isGoldFormat ( ) const [inline, protected]

returns true if there are several meshes/fields in a data file

Definition at line 376 of file MEDMEM_EnsightUtils.hxx.

bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isSingleFileMode ( ) const [inline, protected]

index of meshes/fields in a data file, zero for static mesh/feild

Definition at line 379 of file MEDMEM_EnsightUtils.hxx.

static bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isTimeStepBeginning ( const string &  line) [inline, static]

Definition at line 417 of file MEDMEM_EnsightUtils.hxx.

  { return ( line == TIME_STEP_BEG ); }
static bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isTimeStepEnd ( const char *  line) [inline, static]

Definition at line 420 of file MEDMEM_EnsightUtils.hxx.

  { return ( strncmp( line, TIME_STEP_END, TIME_STEP_END_LEN ) == 0 ); }
static bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isToWriteEntity ( const medEntityMesh  entity,
const GMESH mesh 
) [static]
bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::isTransientMode ( ) const [inline, protected]

time of a step

Definition at line 385 of file MEDMEM_EnsightUtils.hxx.

void MEDMEM_ENSIGHT::MEDMEM_EXPORT::setInterData ( _InterMed imed) [protected]

< for mesh driver to store data

for field driver to get mesh data


Friends And Related Function Documentation

friend class _CaseFileDriver [friend]

Definition at line 431 of file MEDMEM_EnsightUtils.hxx.


Member Data Documentation

std::string MEDMEM_ENSIGHT::MEDMEM_EXPORT::_dataFileName [private]

Definition at line 434 of file MEDMEM_EnsightUtils.hxx.

_InterMed* MEDMEM_ENSIGHT::MEDMEM_EXPORT::_imed [private]

to be used by field driver

Definition at line 441 of file MEDMEM_EnsightUtils.hxx.

string MEDMEM_ENSIGHT::MEDMEM_EXPORT::_imedMapKey [private]

key in the map storing mesh data for usage by field drv

Definition at line 442 of file MEDMEM_EnsightUtils.hxx.

int MEDMEM_ENSIGHT::MEDMEM_EXPORT::_indexInDataFile [private]

which meshes/fields in a data file

Definition at line 438 of file MEDMEM_EnsightUtils.hxx.

bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::_isGoldFormat [private]

Definition at line 435 of file MEDMEM_EnsightUtils.hxx.

bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::_singleFileMode [private]

only one or several meshes/fields in a data file

Definition at line 437 of file MEDMEM_EnsightUtils.hxx.

std::string MEDMEM_ENSIGHT::MEDMEM_EXPORT::_time [private]

time of a step

Definition at line 439 of file MEDMEM_EnsightUtils.hxx.

bool MEDMEM_ENSIGHT::MEDMEM_EXPORT::_transientMode [private]

true if there are time steps

Definition at line 436 of file MEDMEM_EnsightUtils.hxx.


The documentation for this protocol was generated from the following file: