2 #ifndef GAUDIKERNEL_SMARTDATAOBJECTPTR_H
3 #define GAUDIKERNEL_SMARTDATAOBJECTPTR_H 1
39 static AccessFunction
access();
45 static AccessFunction
access();
56 : m_dataProvider(pService),
67 : m_dataProvider(copy.m_dataProvider),
68 m_pRegistry(copy.m_pRegistry),
69 m_status(copy.m_status),
71 m_accessFunc(copy.m_accessFunc)
86 const std::string&
path()
const {
102 return m_dataProvider;
112 return m_accessFunc(
this);
205 #endif // GAUDIKERNEL_SMARTDATAOBJECTPTR_H
static DataObject * find(SmartDataObjectPtr *ptr)
Static Object find method.
DataObject * retrieveObject()
Object retrieve method.
Data provider interface definition.
void setService(IDataProviderSvc *svc)
Assign data service.
IDataProviderSvc * service()
Retrieve data service.
static DataObject * update(SmartDataObjectPtr *ptr)
Static Object update method.
static DataObject * retrieve(SmartDataObjectPtr *ptr)
Static Object retrieval method.
Helper class to configure smart pointer functionality.
StatusCode getLastError() const
Access to potential errors during data accesses.
SmartDataObjectPtr(AccessFunction access, IDataProviderSvc *pService, IRegistry *pDir, const std::string &path)
Standard constructor: Construct an SmartDataObjectPtr instance.
This class is used for returning status codes from appropriate routines.
std::string m_path
Path to object.
DataObject * accessData()
Static Object retrieval method: must call specific function.
const std::string & path() const
Path name.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
bool access(const ContainedObject *from, ContainedObject **to)
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram
SmartDataObjectPtr(const SmartDataObjectPtr ©)
Copy constructor: Construct an copy of a SmartDataStorePtr instance.
virtual ~SmartDataObjectPtr()
Standard Destructor.
StatusCode m_status
Keep track of the last error.
AccessFunction m_accessFunc
Data access function.
A small class used to access easily (and efficiently) data items residing in data stores...
Helper class to configure smart pointer functionality.
DataObject * findObject()
Object find method.
IDataProviderSvc * m_dataProvider
Pointer to contained object.
IRegistry * directory()
Access to data directory.
IRegistry * m_pRegistry
Pointer to the data registry containing the object.
A DataObject is the base class of any identifiable object on any data store.
DataObject * updateObject()
Object update method.