1.4.0
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 () const
 
void setFileName (const String &filename)
 
void setVarName (const String &varname)
 
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 > > &)
 
Proxy getData () const
 

Static Public Member Functions

static int displayNames ()
 
static int getDataInt ()
 
static float getDataFloat ()
 
static double getDataDouble ()
 
static VectorInt getDataVInt ()
 
static VectorFloat getDataVFloat ()
 
static VectorDouble getDataVDouble ()
 
static VectorVectorInt getDataVVInt ()
 
static VectorVectorFloat getDataVVFloat ()
 
static VectorVectorDouble getDataVVDouble ()
 
static VectorDouble getDataDoublePartial (int myrank)
 
static int writeDataDoublePartial (int myrank, const VectorDouble &data)
 
static int getSize ()
 

Public Attributes

String _filename
 
String _varname
 

Constructor & Destructor Documentation

◆ HDF5format() [1/2]

HDF5format::HDF5format ( const String filename = "",
const String varname = "" 
)

◆ HDF5format() [2/2]

HDF5format::HDF5format ( const HDF5format r)

◆ ~HDF5format()

HDF5format::~HDF5format ( )
virtual

Member Function Documentation

◆ closeDataSet()

void HDF5format::closeDataSet ( )

◆ closeFile()

void HDF5format::closeFile ( )

◆ deleteFile()

int HDF5format::deleteFile ( ) const

◆ displayNames()

int HDF5format::displayNames ( )
static

◆ getData()

Proxy HDF5format::getData ( ) const
inline

◆ getDataDouble()

double HDF5format::getDataDouble ( )
static

◆ getDataDoublePartial()

VectorDouble HDF5format::getDataDoublePartial ( int  myrank)
static

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

◆ getDataFloat()

float HDF5format::getDataFloat ( )
static

◆ getDataInt()

int HDF5format::getDataInt ( )
static

◆ getDataVDouble()

VectorDouble HDF5format::getDataVDouble ( )
static

◆ getDataVFloat()

VectorFloat HDF5format::getDataVFloat ( )
static

◆ getDataVInt()

VectorInt HDF5format::getDataVInt ( )
static

◆ getDataVVDouble()

VectorVectorDouble HDF5format::getDataVVDouble ( )
static

◆ getDataVVFloat()

VectorVectorFloat HDF5format::getDataVVFloat ( )
static

◆ getDataVVInt()

VectorVectorInt HDF5format::getDataVVInt ( )
static

Reading VectorVectorInt

Returns

◆ getSize()

int HDF5format::getSize ( )
static

◆ openDataSet()

void HDF5format::openDataSet ( const String varname = "")

◆ openFile()

void HDF5format::openFile ( const String filename = "")

◆ openNewFile()

void HDF5format::openNewFile ( const String filename)

◆ operator=()

HDF5format & HDF5format::operator= ( const HDF5format r)

◆ setFileName()

void HDF5format::setFileName ( const String filename)
inline

◆ setVarName()

void HDF5format::setVarName ( const String varname)
inline

◆ writeData() [1/4]

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

◆ writeData() [2/4]

template<typename T >
void HDF5format::writeData ( const VectorNumT< T > &  data)

◆ writeData() [3/4]

template<typename T >
void HDF5format::writeData ( const VectorT< T > &  data)

◆ writeData() [4/4]

template<typename T >
void HDF5format::writeData ( const VectorT< VectorNumT< T > > &  data)

◆ writeDataDoublePartial()

int HDF5format::writeDataDoublePartial ( int  myrank,
const VectorDouble data 
)
static

Member Data Documentation

◆ _filename

String HDF5format::_filename

◆ _varname

String HDF5format::_varname

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