10#include <framework/database/DBImportBase.h>
47 template<
class ...Args>
void construct(Args&& ... params)
50 m_object =
new T(std::forward<Args>(params)...);
59 throw std::out_of_range(
"DBImportObjPtr::operator ->, for "
61 "object does not exist or is invisible");
Base class for importing objects to the database.
const std::string & getName() const
Returns the name under which the object will be stored in the database.
TObject * m_object
pointer to allocated object or array
Class for importing a single object to the database.
DBImportObjPtr(const std::string &name="")
Constructor: the object itself is not allocated here, but in construct(...) function.
T * operator->() const
Imitate pointer functionality.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
~DBImportObjPtr()
Destructor.
Singleton class to cache database objects.
Abstract base class for different kinds of events.