Back to index

salome-med  6.5.0
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
MEDMEM_EnsightUtils.hxx File Reference
#include "MEDMEM_GenDriver.hxx"
#include "MEDMEM_Exception.hxx"
#include "MEDMEM_DriverTools.hxx"
#include "MEDMEM_Mesh.hxx"
#include <set>
#include <float.h>
#include <cmath>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MEDMEM_ENSIGHT::TEnSightElemType
 EnSight element type name and an array to convert med connectivity to EnSight one. More...
class  MEDMEM_ENSIGHT::_CaseFileDriver
 Reader/writer of EnSight Case file. More...
struct  MEDMEM_ENSIGHT::_CaseFileDriver::_Model
struct  MEDMEM_ENSIGHT::_CaseFileDriver::_Variable
struct  MEDMEM_ENSIGHT::_CaseFileDriver::_FileSet
struct  MEDMEM_ENSIGHT::_CaseFileDriver::_TimeSet
protocol  MEDMEM_ENSIGHT::MEDMEM_EXPORT
 Base of all Ensight drivers. More...
struct  MEDMEM_ENSIGHT::_SubPartDesc
 Descriptor of the sub-part: part number and elem type or "block" etc. More...
struct  MEDMEM_ENSIGHT::_SubPart
 A type within EnSight part. More...
struct  MEDMEM_ENSIGHT::_Support
 EnSight variable support composed of _SubPart's. More...
struct  MEDMEM_ENSIGHT::_InterMed
 Structure to temporarily store data read from EnSight geom file. More...
struct  MEDMEM_ENSIGHT::_ValueOwner< T >
 Simple owner of C array. More...
class  MEDMEM_ENSIGHT::_ValueIterator< T >
 Iterator on values of a component. More...
class  MEDMEM_ENSIGHT::_ASCIIFileReader
 Reader of ASCII files. More...
class  MEDMEM_ENSIGHT::_BinaryFileReader
 Reader of binary files. More...
class  MEDMEM_ENSIGHT::_BinaryFileWriter
 Writer of binary files. More...
class  MEDMEM_ENSIGHT::_BinaryFileWriter::_RealData
 Container of temporary data converting any data to floats. More...

Namespaces

namespace  MEDMEM
 A template class to generate an array of any particular type (int, long, float, double) for our purpose in the MED++ library.
namespace  MEDMEM_ENSIGHT

Typedefs

typedef std::set< _SubPartDesc > MEDMEM_ENSIGHT::_SupportDesc
typedef _ValueOwner< char > MEDMEM_ENSIGHT::TStrOwner
typedef _ValueOwner< int > MEDMEM_ENSIGHT::TIntOwner
typedef _ValueOwner< double > MEDMEM_ENSIGHT::TDblOwner
typedef _ValueOwner< float > MEDMEM_ENSIGHT::TFltOwner

Enumerations

enum  MEDMEM::EnSightFormat { MEDMEM::ENSIGHT_6, MEDMEM::ENSIGHT_GOLD }
 Functions to set writing format. More...

Functions

void MEDMEM::setEnSightFormatForWriting (EnSightFormat format, bool isBinary)
EnSightFormat MEDMEM::getEnSightFormatForWriting ()
bool MEDMEM::isBinaryEnSightFormatForWriting ()
void MEDMEM::setIgnoreIncompatibility (bool toIgnore)
 To raise or not if MEDMEM-EnSight incompatibility encounters or suspected.
STRING MEDMEM_ENSIGHT::compatibilityPb (const string &exceptionText)
 Prepend "EnSight-MEDMEM compatibility problem" to the text of an exception.
bool MEDMEM_ENSIGHT::toIgnoreIncompatibility ()
 To ignore incompatibility or not.
bool MEDMEM_ENSIGHT::contains (const char *what, const char *inString)
 Search substring in a string.
const TEnSightElemType & MEDMEM_ENSIGHT::getEnSightType (medGeometryElement medType)
 Return EnSight type corresponding to med one.
const TEnSightElemType & MEDMEM_ENSIGHT::getEnSightType (const string &theTypeName)
 Return EnSight type having a given name.
bool MEDMEM_ENSIGHT::isGhostType (const string &typeName)
 Return true if typeName begins with "g_".
static float MEDMEM_ENSIGHT::_toFloat (const double &value)
 Cast value to float and protect from overflow.
static float MEDMEM_ENSIGHT::_toFloat (const int &value)
static float MEDMEM_ENSIGHT::_toFloat (const long &value)
std::ostream & MEDMEM_ENSIGHT::operator<< (std::ostream &os, const _SubPartDesc &desc)
 print _SubPartDesc

Variables

const int MEDMEM_ENSIGHT::MAX_LINE_LENGTH = 80
 Maximal EnSight line length.
const int MEDMEM_ENSIGHT::MAX_FIELD_NAME_LENGTH = 19
 Maximal length of field name in EnSight.
const string MEDMEM_ENSIGHT::ILLEGAL_FIELD_NAME_CHARACTERS = " !@#$^()[]*/+-"
 Maximal length of field name in EnSight.
const int MEDMEM_ENSIGHT::INT_WIDTH_6 = 8
 Width of fields in ASCII file.
const int MEDMEM_ENSIGHT::INT_WIDTH_GOLD = 10
const int MEDMEM_ENSIGHT::FLT_WIDTH = 12
const int MEDMEM_ENSIGHT::SPACE_DIM = 3
 EnSight space dimension.
static const char * MEDMEM_ENSIGHT::TIME_STEP_BEG = "BEGIN TIME STEP"
 Time step data boundaries in single-file mode.
static const char * MEDMEM_ENSIGHT::TIME_STEP_END = "END TIME STEP"
const size_t MEDMEM_ENSIGHT::TIME_STEP_BEG_LEN = 15
const size_t MEDMEM_ENSIGHT::TIME_STEP_END_LEN = 13

Class Documentation

struct MEDMEM_ENSIGHT::TEnSightElemType

EnSight element type name and an array to convert med connectivity to EnSight one.

Definition at line 118 of file MEDMEM_EnsightUtils.hxx.

Collaboration diagram for MEDMEM_ENSIGHT::TEnSightElemType:
Class Members
vector< int > _medIndex
medGeometryElement _medType
string _name
struct MEDMEM_ENSIGHT::_CaseFileDriver::_Model

Definition at line 282 of file MEDMEM_EnsightUtils.hxx.

Collaboration diagram for MEDMEM_ENSIGHT::_CaseFileDriver::_Model:
Class Members
string _change_coords_only
string _fileName filename
string _fileSetNumber ts, fs
string _timeSetNumber
struct MEDMEM_ENSIGHT::_CaseFileDriver::_Variable

Definition at line 309 of file MEDMEM_EnsightUtils.hxx.

Collaboration diagram for MEDMEM_ENSIGHT::_CaseFileDriver::_Variable:
Class Members
string _fileNameOrData [cv]filename|Re_fn Im_fn freq|const_value(s)
string _fileSetNumber [ts], [fs]
string _name description
string _timeSetNumber
string _type constant|scalar|etc.
struct MEDMEM_ENSIGHT::_CaseFileDriver::_FileSet

Definition at line 321 of file MEDMEM_EnsightUtils.hxx.

Collaboration diagram for MEDMEM_ENSIGHT::_CaseFileDriver::_FileSet:
Class Members
list< string > _fileIndex fi
list< int > _nbStepsInFile ns
int _number fs