CFEL - ASG Software Suite
2.5.0
CASS
|
append an entity to a dataset in h5 file More...
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... | |
![]() | |
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 | |
![]() | |
::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... | |
append an entity to a dataset in h5 file
Definition at line 189 of file hdf5_converter.cpp.
|
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
filename | the name of the h5 file |
id | the id of the event to get the data for |
Definition at line 201 of file hdf5_converter.cpp.
|
inlinevirtual |
write an entry to h5 file using the functions defined above
entry | The 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().
|
inlinevirtual |
add the event id to the event id dataset
in addition switch the attribute writer to nothing
id | the new eventid |
Reimplemented from cass::hdf5::WriteEntry.
Definition at line 236 of file hdf5_converter.cpp.
|
inlineprotected |
write the attributes to the dataset
data | reference to the data |
dsetName | the 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.
|
inlineprotected |
write nothing
unused | unused reference |
unused | not used name |
Definition at line 293 of file hdf5_converter.cpp.
|
private |
function to write the results axis attributes just once to the dataset
Definition at line 301 of file hdf5_converter.cpp.