fire v0.19.0
Framework for sImulation and Reconstruction of Events
|
Empty data base allowing recursion. More...
#include <AbstractData.h>
Public Member Functions | |
BaseData (const std::string &path) | |
Define the full in-file path to the data set of this data. More... | |
virtual | ~BaseData ()=default |
virtual destructor so inherited classes can be properly destructed. | |
virtual void | load (h5::Reader &f)=0 |
pure virtual method for loading data from the input file More... | |
virtual void | save (Writer &f)=0 |
pure virtual method for saving the current data More... | |
virtual void | structure (Writer &f)=0 |
we should persist our hierarchy into the output file More... | |
virtual void | clear ()=0 |
pure virtual method for resetting the current data to a blank state More... | |
Protected Attributes | |
std::string | path_ |
path of data set | |
Empty data base allowing recursion.
This does not have the type information of the data stored in any of the derived datasets, it simply instructs the derived data sets to define a load and save mechanism for loading/saving the dataset from/to the file.
|
inlineexplicit |
Define the full in-file path to the data set of this data.
[in] | path | full in-file path to the data set |
|
pure virtual |
pure virtual method for resetting the current data to a blank state
Implemented in fire::io::AbstractData< DataType >, fire::io::AbstractData< AtomicType >, fire::io::AbstractData< ParameterStorage >, fire::io::AbstractData< std::map< KeyType, ValType > >, and fire::io::AbstractData< std::vector< ContentType > >.
|
pure virtual |
pure virtual method for loading data from the input file
[in] | f | h5::Reader to load from |
Implemented in fire::io::Data< DataType, Enable >, fire::io::Data< AtomicType, std::enable_if_t< is_atomic_v< AtomicType > > >, fire::io::Data< std::vector< ContentType > >, fire::io::Data< std::map< KeyType, ValType > >, fire::io::AbstractData< DataType >, fire::io::AbstractData< AtomicType >, fire::io::AbstractData< ParameterStorage >, fire::io::AbstractData< std::map< KeyType, ValType > >, fire::io::AbstractData< std::vector< ContentType > >, and fire::io::Data< ParameterStorage >.
|
pure virtual |
pure virtual method for saving the current data
[in] | f | Writer to write to |
Implemented in fire::io::Data< DataType, Enable >, fire::io::Data< AtomicType, std::enable_if_t< is_atomic_v< AtomicType > > >, fire::io::Data< std::vector< ContentType > >, fire::io::Data< std::map< KeyType, ValType > >, fire::io::AbstractData< DataType >, fire::io::AbstractData< AtomicType >, fire::io::AbstractData< ParameterStorage >, fire::io::AbstractData< std::map< KeyType, ValType > >, fire::io::AbstractData< std::vector< ContentType > >, and fire::io::Data< ParameterStorage >.
|
pure virtual |
we should persist our hierarchy into the output file
[in] | f | Writer to write to |
Implemented in fire::io::Data< DataType, Enable >, fire::io::Data< AtomicType, std::enable_if_t< is_atomic_v< AtomicType > > >, fire::io::Data< std::vector< ContentType > >, fire::io::Data< std::map< KeyType, ValType > >, fire::io::AbstractData< DataType >, fire::io::AbstractData< AtomicType >, fire::io::AbstractData< ParameterStorage >, fire::io::AbstractData< std::map< KeyType, ValType > >, fire::io::AbstractData< std::vector< ContentType > >, and fire::io::Data< ParameterStorage >.