Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Hdf5VariableInfoBase Class Referenceabstract

Base class for reading or writing a variable. More...

#include <arcane/hdf5/Hdf5VariableInfoBase.h>

Inheritance diagram for Arcane::Hdf5VariableInfoBase:
Collaboration diagram for Arcane::Hdf5VariableInfoBase:

Classes

class  ICorrespondanceFunctor
 Functor to establish the correspondence between a entity of the current mesh and that of the saved mesh. More...

Public Member Functions

const Stringpath () const
 Path in the Hdf5 file containing the variable value.
void setPath (const String &path)
 Sets the path in the Hdf5 file containing the variable value.
virtual void readVariable (Hdf5Utils::HFile &hfile, const String &filename, Hdf5Utils::StandardTypes &st, const String &ids_hpath, IData *data)=0
virtual void writeVariable (Hdf5Utils::HFile &hfile, Hdf5Utils::StandardTypes &st)=0
virtual IVariablevariable () const =0
void writeGroup (Hdf5Utils::HFile &hfile, Hdf5Utils::StandardTypes &st, const String &hdf_path, Integer save_type)
void readGroupInfo (Hdf5Utils::HFile &hfile, Hdf5Utils::StandardTypes &st, const String &hdf_path, Int64Array &uids, Real3Array &centers)
void setCorrespondanceFunctor (ICorrespondanceFunctor *functor)

Static Public Member Functions

static Hdf5VariableInfoBase * create (IMesh *mesh, const String &name, const String &family)
static Hdf5VariableInfoBase * create (IVariable *variable)
 Creates an instance for the variable variable.

Static Public Attributes

static const Integer SAVE_IDS = 1
static const Integer SAVE_COORDS = 2

Protected Attributes

ICorrespondanceFunctorm_correspondance_functor

Static Private Member Functions

static void _checkValidVariable (IVariable *var)

Private Attributes

String m_path

Detailed Description

Base class for reading or writing a variable.

Definition at line 38 of file hdf5/Hdf5VariableInfoBase.h.

Constructor & Destructor Documentation

◆ Hdf5VariableInfoBase()

Arcane::Hdf5VariableInfoBase::Hdf5VariableInfoBase ( )
inlineprotected

Definition at line 64 of file hdf5/Hdf5VariableInfoBase.h.

◆ ~Hdf5VariableInfoBase()

virtual Arcane::Hdf5VariableInfoBase::~Hdf5VariableInfoBase ( )
inlinevirtual

Definition at line 70 of file hdf5/Hdf5VariableInfoBase.h.

Member Function Documentation

◆ _checkValidVariable()

void Arcane::Hdf5VariableInfoBase::_checkValidVariable ( IVariable * var)
staticprivate

Definition at line 233 of file Hdf5VariableInfoBase.cc.

◆ create() [1/2]

Hdf5VariableInfoBase * Arcane::Hdf5VariableInfoBase::create ( IMesh * mesh,
const String & name,
const String & family )
static

Definition at line 109 of file Hdf5VariableInfoBase.cc.

◆ create() [2/2]

Hdf5VariableInfoBase * Arcane::Hdf5VariableInfoBase::create ( IVariable * variable)
static

Creates an instance for the variable variable.

Definition at line 120 of file Hdf5VariableInfoBase.cc.

References Arcane::IVariable::dataType(), Arcane::IVariable::dimension(), Arcane::DT_Byte, Arcane::DT_Int32, Arcane::DT_Int64, Arcane::DT_Real, Arcane::DT_Real2, Arcane::DT_Real2x2, Arcane::DT_Real3, Arcane::DT_Real3x3, Arcane::IVariable::fullName(), Arcane::IVariable::isPartial(), Arcane::IVariable::itemFamily(), and Arcane::IItemFamily::mesh().

Here is the call graph for this function:

◆ path()

const String & Arcane::Hdf5VariableInfoBase::path ( ) const
inline

Path in the Hdf5 file containing the variable value.

Definition at line 82 of file hdf5/Hdf5VariableInfoBase.h.

Referenced by setPath(), and Arcane::Hdf5ItemVariableInfo< VariableType, DataType >::writeVariable().

Here is the caller graph for this function:

◆ readGroupInfo()

void Arcane::Hdf5VariableInfoBase::readGroupInfo ( Hdf5Utils::HFile & hfile,
Hdf5Utils::StandardTypes & st,
const String & hdf_path,
Int64Array & uids,
Real3Array & centers )

Definition at line 353 of file Hdf5VariableInfoBase.cc.

◆ setCorrespondanceFunctor()

void Arcane::Hdf5VariableInfoBase::setCorrespondanceFunctor ( ICorrespondanceFunctor * functor)
inline

Definition at line 96 of file hdf5/Hdf5VariableInfoBase.h.

◆ setPath()

void Arcane::Hdf5VariableInfoBase::setPath ( const String & path)
inline

Sets the path in the Hdf5 file containing the variable value.

Definition at line 84 of file hdf5/Hdf5VariableInfoBase.h.

References path().

Referenced by Arcane::Hdf5VariableReaderHelper::open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeGroup()

◆ writeVariable()

virtual void Arcane::Hdf5VariableInfoBase::writeVariable ( Hdf5Utils::HFile & hfile,
Hdf5Utils::StandardTypes & st )
pure virtual

Member Data Documentation

◆ m_correspondance_functor

ICorrespondanceFunctor* Arcane::Hdf5VariableInfoBase::m_correspondance_functor
protected

Definition at line 107 of file hdf5/Hdf5VariableInfoBase.h.

◆ m_path

String Arcane::Hdf5VariableInfoBase::m_path
private

Definition at line 103 of file hdf5/Hdf5VariableInfoBase.h.

◆ SAVE_COORDS

const Integer Arcane::Hdf5VariableInfoBase::SAVE_COORDS = 2
static

Definition at line 60 of file hdf5/Hdf5VariableInfoBase.h.

◆ SAVE_IDS

const Integer Arcane::Hdf5VariableInfoBase::SAVE_IDS = 1
static

Definition at line 59 of file hdf5/Hdf5VariableInfoBase.h.


The documentation for this class was generated from the following files: