Base class for reading or writing a variable. More...
#include <arcane/hdf5/Hdf5VariableInfoBase.h>
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 String & | path () 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 IVariable * | variable () 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 ¢ers) |
| 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 | |
| ICorrespondanceFunctor * | m_correspondance_functor |
Static Private Member Functions | |
| static void | _checkValidVariable (IVariable *var) |
Private Attributes | |
| String | m_path |
Base class for reading or writing a variable.
Definition at line 38 of file hdf5/Hdf5VariableInfoBase.h.
|
inlineprotected |
Definition at line 64 of file hdf5/Hdf5VariableInfoBase.h.
|
inlinevirtual |
Definition at line 70 of file hdf5/Hdf5VariableInfoBase.h.
|
staticprivate |
Definition at line 233 of file Hdf5VariableInfoBase.cc.
|
static |
Definition at line 109 of file Hdf5VariableInfoBase.cc.
|
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().
|
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().
| 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.
|
inline |
Definition at line 96 of file hdf5/Hdf5VariableInfoBase.h.
|
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().
| void Arcane::Hdf5VariableInfoBase::writeGroup | ( | Hdf5Utils::HFile & | hfile, |
| Hdf5Utils::StandardTypes & | st, | ||
| const String & | hdf_path, | ||
| Integer | save_type ) |
TODO to optimize
Definition at line 254 of file Hdf5VariableInfoBase.cc.
References Arcane::Array< T >::add(), ENUMERATE_ITEM, ENUMERATE_NODE, Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, Arcane::ItemGroup::itemFamily(), Arcane::IVariable::itemGroup(), Arcane::ItemGroup::itemKind(), Arcane::ItemGroup::mesh(), Arcane::IItemFamily::name(), Arcane::ItemWithNodes::nbNode(), Arcane::ItemWithNodes::nodeIds(), Arcane::ItemGroup::own(), Arcane::IMesh::parallelMng(), Arcane::ITraceMng::pwarning(), Arcane::IParallelMng::reduce(), Arcane::MessagePassing::ReduceMax, Arcane::ItemGroup::size(), Arcane::Item::toItemWithNodes(), Arcane::IParallelMng::traceMng(), Arcane::ItemTypeInfo::typeId(), and Arcane::Item::typeInfo().
|
pure virtual |
Implemented in Arcane::Hdf5ItemVariableInfo< VariableType, DataType >.
|
protected |
Definition at line 107 of file hdf5/Hdf5VariableInfoBase.h.
|
private |
Definition at line 103 of file hdf5/Hdf5VariableInfoBase.h.
|
static |
Definition at line 60 of file hdf5/Hdf5VariableInfoBase.h.
|
static |
Definition at line 59 of file hdf5/Hdf5VariableInfoBase.h.