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

append an entity to a dataset in h5 file More...

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

Public Member Functions

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

Protected Member Functions

void writeAttib (const Processor::result_t &data, const string &dsetName)
 write the attributes to the dataset More...
 
void writeNothing (const Processor::result_t &, const string &)
 write nothing More...
 

Private Attributes

std::tr1::function< void(const Processor::result_t &, const string &)> _writeAttributes
 function to write the results axis attributes just once to the dataset More...
 

Additional Inherited Members

- Protected Attributes inherited from cass::hdf5::WriteEntry
::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

append an entity to a dataset in h5 file

Author
Lutz Foucar

Definition at line 189 of file hdf5_converter.cpp.

Constructor & Destructor Documentation

cass::hdf5::AppendEntry::AppendEntry ( 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 201 of file hdf5_converter.cpp.

Member Function Documentation

virtual void cass::hdf5::AppendEntry::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 from cass::hdf5::WriteEntry.

Definition at line 211 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, and cass::Processor::result().

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

add the event id to the event id dataset

in addition switch the attribute writer to nothing

Parameters
idthe new eventid

Reimplemented from cass::hdf5::WriteEntry.

Definition at line 236 of file hdf5_converter.cpp.

void cass::hdf5::AppendEntry::writeAttib ( const Processor::result_t data,
const string &  dsetName 
)
inlineprotected

write the attributes to the dataset

Parameters
datareference to the data
dsetNamethe name of the dataset that the attributes should be written to

Definition at line 256 of file hdf5_converter.cpp.

References cass::Result< T >::axis(), cass::Result< T >::dim(), cass::toString(), cass::Result< float >::xAxis, and cass::Result< float >::yAxis.

void cass::hdf5::AppendEntry::writeNothing ( const Processor::result_t ,
const string &   
)
inlineprotected

write nothing

Parameters
unusedunused reference
unusednot used name

Definition at line 293 of file hdf5_converter.cpp.

Member Data Documentation

std::tr1::function<void(const Processor::result_t&,const string&)> cass::hdf5::AppendEntry::_writeAttributes
private

function to write the results axis attributes just once to the dataset

Definition at line 301 of file hdf5_converter.cpp.


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