11#include <framework/database/DBObjPtr.h>
57 explicit DBObjPtr(
const std::string& name =
"",
bool required =
true):
Base class for DBObjPtr and DBArray for easier common treatment.
const std::string & getFilename() const
Get the filename this object is loaded from.
void addCallback(std::function< void(const std::string &)> callback, bool onDestruction=false)
Add a callback method.
bool isValid() const
Check whether a valid object was obtained from the database.
DBStoreEntry * m_entry
Pointer to the entry in the DBStore.
bool isValid() const
isValid is always true if we have a filename
PayloadFile m_payloadFile
PayloadFile object which can be queried for the filename.
DBObjPtr(const std::string &name="", bool required=true)
Constructor of a DBObjPtr object.
Class for accessing objects in the database.
const T & operator*() const
Imitate pointer functionality.
const T * operator->() const
Imitate pointer functionality.
Class to hold one entry from the ConditionsDB in the DBStore.
const std::string & getFilename() const
get the filename for this payload
A wrapper class for payload files used by the Database and DBStore classes.
PayloadFile(const std::string &fileName)
Constructor.
std::string getContent() const
Read the content of the payload (text) file.
std::string getFileName() const
Get the name of the downloaded payload file.
std::string m_fileName
Name of the payload file.
Abstract base class for different kinds of events.