CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Protected Attributes | List of all members
cass::hdf5::WriteEntry Class Reference

write an entity to a h5 file More...

+ Inheritance diagram for cass::hdf5::WriteEntry:
+ Collaboration diagram for cass::hdf5::WriteEntry:

Public Member Functions

 WriteEntry (const string &filename, const CASSEvent::id_t id=0)
 constructor More...
 
void setBaseGroup (const string &name)
 set the base group name More...
 
virtual void setEventID (const CASSEvent::id_t id)
 set the event id More...
 
size_t currentFileSize () const
 retrieve the current file size More...
 
virtual void operator() (const pp1002::entry_t &entry)
 write an entry to h5 file using the functions defined above More...
 

Protected Attributes

::hdf5::Handler _fh
 the file handle of the h5 file More...
 
CASSEvent::id_t _id
 the eventid to look for More...
 
string _baseGroupname
 the base group name More...
 

Detailed Description

write an entity to a h5 file

Author
Lutz Foucar

Definition at line 74 of file hdf5_converter.cpp.

Constructor & Destructor Documentation

cass::hdf5::WriteEntry::WriteEntry ( const string &  filename,
const CASSEvent::id_t  id = 0 
)
inline

constructor

create the hdf5 file with the name and the handles to the specific data storage. Add a dataset that describes the cass version with which the file was generated

Parameters
filenamethe name of the h5 file
idthe id of the event to get the data for

Definition at line 87 of file hdf5_converter.cpp.

Member Function Documentation

size_t cass::hdf5::WriteEntry::currentFileSize ( ) const
inline

retrieve the current file size

Returns
the current file size

Definition at line 118 of file hdf5_converter.cpp.

virtual void cass::hdf5::WriteEntry::operator() ( const pp1002::entry_t entry)
inlinevirtual

write an entry to h5 file using the functions defined above

Parameters
entryThe entry to put into the h5 file

create the requested dataset name

retrieve data from pp and write it to the h5 file

Reimplemented in cass::hdf5::AppendEntry.

Definition at line 127 of file hdf5_converter.cpp.

References data, cass::pp1002::entry_t::groupname, cass::pp1002::entry_t::name, cass::pp1002::entry_t::options, cass::pp1002::entry_t::proc, cass::Processor::result(), cass::toString(), cass::Result< float >::xAxis, and cass::Result< float >::yAxis.

void cass::hdf5::WriteEntry::setBaseGroup ( const string &  name)
inline

set the base group name

Parameters
namethe new base group name

Definition at line 100 of file hdf5_converter.cpp.

virtual void cass::hdf5::WriteEntry::setEventID ( const CASSEvent::id_t  id)
inlinevirtual

set the event id

Parameters
idthe current event id

Reimplemented in cass::hdf5::AppendEntry.

Definition at line 109 of file hdf5_converter.cpp.

Member Data Documentation

string cass::hdf5::WriteEntry::_baseGroupname
protected

the base group name

Definition at line 181 of file hdf5_converter.cpp.

::hdf5::Handler cass::hdf5::WriteEntry::_fh
protected

the file handle of the h5 file

Definition at line 175 of file hdf5_converter.cpp.

CASSEvent::id_t cass::hdf5::WriteEntry::_id
protected

the eventid to look for

Definition at line 178 of file hdf5_converter.cpp.


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