HerdSoftware
0.1.1
|
Base class for DataReaders. More...
#include <dataproviders/readers/DataReader.h>
Public Member Functions | |
virtual bool | SetCurrentEvent (unsigned int event)=0 |
Sets the current event. More... | |
virtual bool | IsObjectAvailable (const std::string &name)=0 |
Check if an object is available. More... | |
virtual bool | IsObjectKnown (const std::string &name)=0 |
Check if an object is known. More... | |
virtual RetrievalResult | GetObject (const std::string &name, ObjectCategory category, ObjectWrapper &wrapper, std::string &actualName)=0 |
Provides an object. More... | |
virtual std::vector< std::string > | FreeObjects (const std::vector< std::string > &objs, Memory::Status memStatus)=0 |
Free the memory of unneeded objects. More... | |
Base class for DataReaders.
Base class for DataReaders. Implements the minimal interface for derived classes. Readers are supposed to encapsulate the I/O read for similar kind of objects (e.g. geometry parameters, event hits, etc..) Readers are not supposed to publish objects, but only to retrieve them when their parent DataProvider asks.
|
pure virtual |
Free the memory of unneeded objects.
This method should free the memory of the provided objects if memStatus
is EXHAUSTED. However implementation is delegated to derived class.
objs | The list of objects to be freed. |
memStatus | The current memory occupation status. |
Implemented in Herd::GGSSimReader, and Herd::ParametricGeoReader.
|
pure virtual |
Provides an object.
See the description of the class for more information about the provided objects.
name | The name or alias of the requested object. |
category | The category of the requested object. |
wrapper | Wrapper for return value. |
actualName | The name of the object in case we're asking for an alias |
Implemented in Herd::GGSSimReader, and Herd::ParametricGeoReader.
|
pure virtual |
Check if an object is available.
Check in list of known providable objects if it is available or not.
name | The name or alias of the requested object. |
Implemented in Herd::GGSSimReader, and Herd::ParametricGeoReader.
|
pure virtual |
Check if an object is known.
Check in list of known providable objects if it is there or not.
name | The name or alias of the requested object. |
Implemented in Herd::GGSSimReader, and Herd::ParametricGeoReader.
|
pure virtual |
Sets the current event.
event | The index of the event to be set as current. |
Implemented in Herd::GGSSimReader, and Herd::ParametricGeoReader.