fire v0.19.0
Framework for sImulation and Reconstruction of Events
fire::io::BaseData Class Referenceabstract

Empty data base allowing recursion. More...

#include <AbstractData.h>

Inheritance diagram for fire::io::BaseData:
[legend]
Collaboration diagram for fire::io::BaseData:
[legend]

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
 

Detailed Description

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.

Note
Users should never interact with this class.

Constructor & Destructor Documentation

◆ BaseData()

fire::io::BaseData::BaseData ( const std::string path)
inlineexplicit

Define the full in-file path to the data set of this data.

Parameters
[in]pathfull in-file path to the data set

Member Function Documentation

◆ clear()

virtual void fire::io::BaseData::clear ( )
pure virtual

◆ load()

◆ save()

◆ structure()


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