Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::Exporter Struct Reference
Inheritance diagram for Alien::Exporter:
Collaboration diagram for Alien::Exporter:

Public Member Functions

 Exporter (std::string const &name, std::string const &out_format, int prec, int smart_size_limit=4)
FileNode createFileNode (const std::string &name, int level=0)
FileNode createFileNode (FileNode const &parent, const std::string &name)
FileNode createFileNode (FileNode const &parent, std::string name, std::string group_name)
FileNode createFileNode (FileNode const &parent, std::string name, std::string att_name, std::string att_kind, bool is_group=false)
void closeFileNode (FileNode const &group)
template<typename ValueT>
void write (FileNode const &parent_node, const std::string &node_name, const ValueT &val)
template<typename ValueT>
void write (FileNode const &parent_node, const std::string &node_name, std::vector< ValueT > &buffer, int nb_elems_per_line=1)
void write (FileNode const &parent_node, const std::string &node_name, const std::string &buffer)
void _tab (const int level)
Public Member Functions inherited from Alien::HDF5Base
 HDF5Base (std::string const &name)

Public Attributes

std::ofstream fout
int m_smart_size_limit
bool m_write_xml_hdf
Public Attributes inherited from Alien::HDF5Base
std::string name
std::string xfile_name
std::string hfile_name
std::string format
eFormatType type
StandardTypes m_types
std::vector< double > rbuffer
std::vector< Int64 > i64buffer
std::vector< int > i32buffer

Additional Inherited Members

Public Types inherited from Alien::HDF5Base
enum  eFormatType { ASCII , HDF5 , SMART }

Detailed Description

Definition at line 128 of file HDF5Tools.h.

Constructor & Destructor Documentation

◆ Exporter()

Alien::Exporter::Exporter ( std::string const & name,
std::string const & out_format,
int prec,
int smart_size_limit = 4 )
inline

Definition at line 130 of file HDF5Tools.h.

◆ ~Exporter()

Alien::Exporter::~Exporter ( )
inline

Definition at line 172 of file HDF5Tools.h.

Member Function Documentation

◆ _tab()

void Alien::Exporter::_tab ( const int level)
inline

Definition at line 504 of file HDF5Tools.h.

◆ closeFileNode()

void Alien::Exporter::closeFileNode ( FileNode const & group)
inline

Definition at line 268 of file HDF5Tools.h.

◆ createFileNode() [1/4]

FileNode Alien::Exporter::createFileNode ( const std::string & name,
int level = 0 )
inline

Definition at line 185 of file HDF5Tools.h.

◆ createFileNode() [2/4]

FileNode Alien::Exporter::createFileNode ( FileNode const & parent,
const std::string & name )
inline

Definition at line 203 of file HDF5Tools.h.

◆ createFileNode() [3/4]

FileNode Alien::Exporter::createFileNode ( FileNode const & parent,
std::string name,
std::string att_name,
std::string att_kind,
bool is_group = false )
inline

Definition at line 243 of file HDF5Tools.h.

◆ createFileNode() [4/4]

FileNode Alien::Exporter::createFileNode ( FileNode const & parent,
std::string name,
std::string group_name )
inline

Definition at line 222 of file HDF5Tools.h.

◆ write() [1/3]

void Alien::Exporter::write ( FileNode const & parent_node,
const std::string & node_name,
const std::string & buffer )
inline

Definition at line 437 of file HDF5Tools.h.

◆ write() [2/3]

template<typename ValueT>
void Alien::Exporter::write ( FileNode const & parent_node,
const std::string & node_name,
const ValueT & val )
inline

Definition at line 282 of file HDF5Tools.h.

◆ write() [3/3]

template<typename ValueT>
void Alien::Exporter::write ( FileNode const & parent_node,
const std::string & node_name,
std::vector< ValueT > & buffer,
int nb_elems_per_line = 1 )
inline

Definition at line 346 of file HDF5Tools.h.

Member Data Documentation

◆ fout

std::ofstream Alien::Exporter::fout

Definition at line 500 of file HDF5Tools.h.

◆ m_smart_size_limit

int Alien::Exporter::m_smart_size_limit

Definition at line 501 of file HDF5Tools.h.

◆ m_write_xml_hdf

bool Alien::Exporter::m_write_xml_hdf

Definition at line 502 of file HDF5Tools.h.


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