1.2.2
CCC
 
HDF5format Class Reference

#include <HDF5format.hpp>

Classes

class  Proxy
 

Public Member Functions

 HDF5format (const String &filename="", const String &varname="")
 
 HDF5format (const HDF5format &r)
 
HDF5formatoperator= (const HDF5format &r)
 
virtual ~HDF5format ()
 
int deleteFile ()
 
void setFileName (const String &filename)
 
void setVarName (const String &varname)
 
int displayNames () const
 
void openFile (const String &filename="")
 
void openNewFile (const String &filename)
 
void openDataSet (const String &varname="")
 
void closeFile ()
 
void closeDataSet ()
 
template<typename T >
void writeData (const T &)
 
template<typename T >
void writeData (const VectorT< T > &)
 
template<typename T >
void writeData (const VectorNumT< T > &)
 
template<typename T >
void writeData (const VectorT< VectorNumT< T > > &)
 
int getDataInt () const
 
float getDataFloat () const
 
double getDataDouble () const
 
VectorInt getDataVInt () const
 
VectorFloat getDataVFloat () const
 
VectorDouble getDataVDouble () const
 
VectorVectorInt getDataVVInt () const
 
VectorVectorFloat getDataVVFloat () const
 
VectorVectorDouble getDataVVDouble () const
 
VectorDouble getDataDoublePartial (int myrank) const
 
int writeDataDoublePartial (int myrank, const VectorDouble &data)
 
int getSize () const
 
Proxy getData () const
 

Public Attributes

String _filename
 
String _varname
 

Constructor & Destructor Documentation

HDF5format::HDF5format ( const String filename = "",
const String varname = "" 
)
HDF5format::HDF5format ( const HDF5format r)
HDF5format::~HDF5format ( )
virtual

Member Function Documentation

void HDF5format::closeDataSet ( )
void HDF5format::closeFile ( )
int HDF5format::deleteFile ( )
int HDF5format::displayNames ( ) const
Proxy HDF5format::getData ( ) const
inline
double HDF5format::getDataDouble ( ) const
VectorDouble HDF5format::getDataDoublePartial ( int  myrank) const

This function extracts one VectorDouble from a data set constructed with a set of VectorDouble (i.e. VectorVectorDouble)

Parameters
myrankRank of the extracted VectorDouble
Returns
The extracted VectorDouble
float HDF5format::getDataFloat ( ) const
int HDF5format::getDataInt ( ) const
VectorDouble HDF5format::getDataVDouble ( ) const
VectorFloat HDF5format::getDataVFloat ( ) const
VectorInt HDF5format::getDataVInt ( ) const
VectorVectorDouble HDF5format::getDataVVDouble ( ) const
VectorVectorFloat HDF5format::getDataVVFloat ( ) const
VectorVectorInt HDF5format::getDataVVInt ( ) const

Reading VectorVectorInt

Returns
int HDF5format::getSize ( ) const
void HDF5format::openDataSet ( const String varname = "")
void HDF5format::openFile ( const String filename = "")
void HDF5format::openNewFile ( const String filename)
HDF5format & HDF5format::operator= ( const HDF5format r)
void HDF5format::setFileName ( const String filename)
inline
void HDF5format::setVarName ( const String varname)
inline
template<typename T >
void HDF5format::writeData ( const T data)

Numeric implementation of our write data function Only accepts numerical values. Integers, floats, or doubles

Parameters
data
template<typename T >
void HDF5format::writeData ( const VectorT< T > &  data)
template<typename T >
void HDF5format::writeData ( const VectorNumT< T > &  data)
template<typename T >
void HDF5format::writeData ( const VectorT< VectorNumT< T > > &  data)
int HDF5format::writeDataDoublePartial ( int  myrank,
const VectorDouble data 
)

Member Data Documentation

String HDF5format::_filename
String HDF5format::_varname

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