The Gaudi Framework
master (37c0b60a)
|
#include <GaudiKernel/IDataProviderSvc.h>
Public Types | |
enum | { SEPARATOR = '/' } |
enum | Status : StatusCode::code_t { Status::IDataProviderSvc_NO_ERROR = 1, Status::DOUBL_OBJ_PATH, Status::INVALID_OBJ_PATH, Status::INVALID_ROOT, Status::INVALID_OBJECT, Status::INVALID_PARENT, Status::OBJ_NOT_LOADED, Status::NO_DATA_LOADER, Status::INVALID_OBJ_ADDR, Status::DIR_NOT_EMPTY, Status::NO_MORE_LEVELS, Status::NO_ACCESS, Status::LAST } |
Status code definitions. More... | |
Public Types inherited from IInterface | |
enum | Status : StatusCode::code_t { Status::FAILURE = 0, Status::SUCCESS = 1, Status::NO_INTERFACE, Status::VERSMISMATCH, Status::LAST_ERROR } |
Return status. More... | |
using | iid = Gaudi::InterfaceId< IInterface, 0, 0 > |
Interface ID. More... | |
using | ext_iids = Gaudi::interface_list< iid > |
Extra interfaces. More... | |
Public Member Functions | |
DeclareInterfaceID (IDataProviderSvc, 4, 0) | |
InterfaceID. More... | |
StatusCode | registerObject (std::string_view fullPath, DataObject *pObject) |
Register object with the data store. More... | |
virtual StatusCode | registerObject (std::string_view parentPath, std::string_view objectPath, DataObject *pObject)=0 |
Register object with the data store. More... | |
StatusCode | registerObject (std::string_view parentPath, int item, DataObject *pObject) |
Register object with the data store. More... | |
virtual StatusCode | registerObject (DataObject *parentObj, std::string_view objectPath, DataObject *pObject)=0 |
Register object with the data store. More... | |
StatusCode | registerObject (DataObject *parentObj, int item, DataObject *pObject) |
Register object with the data store. More... | |
virtual StatusCode | unregisterObject (std::string_view fullPath)=0 |
Unregister object from the data store. More... | |
StatusCode | unregisterObject (std::string_view parentPath, std::string_view objPath) |
Unregister object from the data store. More... | |
StatusCode | unregisterObject (std::string_view parentPath, int item) |
Unregister object from the data store. More... | |
virtual StatusCode | unregisterObject (DataObject *pObject)=0 |
Unregister object from the data store. More... | |
virtual StatusCode | unregisterObject (DataObject *pParent, std::string_view objPath)=0 |
Unregister object from the data store. More... | |
StatusCode | unregisterObject (DataObject *pParent, int item) |
Unregister object from the data store. More... | |
virtual StatusCode | retrieveObject (IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0 |
Retrieve object identified by its directory entry. More... | |
StatusCode | retrieveObject (std::string_view fullPath, DataObject *&pObject) |
Retrieve object identified by its full path from the data store. More... | |
StatusCode | retrieveObject (std::string_view parentPath, std::string_view objectPath, DataObject *&pObject) |
Retrieve object from data store. More... | |
StatusCode | retrieveObject (std::string_view parentPath, int item, DataObject *&pObject) |
Retrieve object from data store. More... | |
StatusCode | retrieveObject (DataObject *parentObj, std::string_view objectPath, DataObject *&pObject) |
Retrieve object from data store. More... | |
StatusCode | retrieveObject (DataObject *parentObj, int item, DataObject *&pObject) |
Retrieve object from data store. More... | |
virtual StatusCode | findObject (IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0 |
Find object identified by its directory entry. More... | |
virtual StatusCode | findObject (std::string_view fullPath, DataObject *&pObject)=0 |
Find object identified by its full path in the data store. More... | |
StatusCode | findObject (std::string_view parentPath, std::string_view objectPath, DataObject *&pObject) |
Find object identified by its parent object and the path to the object relative to the parent. More... | |
StatusCode | findObject (std::string_view parentPath, int item, DataObject *&pObject) |
Find object identified by its parent object and an integer identifier in the data store. More... | |
StatusCode | findObject (DataObject *parentObj, std::string_view objectPath, DataObject *&pObject) |
Find object identified by its parent object and the path to the object relative to the parent. More... | |
StatusCode | findObject (DataObject *parentObj, int item, DataObject *&pObject) |
Find object identified by its parent object and an integer identifier in the data store. More... | |
virtual StatusCode | updateObject (IRegistry *pDirectory)=0 |
Update object identified by its directory entry. More... | |
StatusCode | updateObject (std::string_view fullPath) |
Update object identified by its full path in the data store. More... | |
virtual StatusCode | updateObject (DataObject *toUpdate)=0 |
Update object identified by its pointer. More... | |
StatusCode | updateObject (std::string_view parentPath, std::string_view updatePath) |
Update object identified by its parent's path and the path relative to the parent. More... | |
StatusCode | updateObject (DataObject *pParent, std::string_view updatePath) |
Update object identified by its parent's pointer and the path relative to the parent. More... | |
virtual StatusCode | addPreLoadItem (const DataStoreItem &item)=0 |
Add an item to the preload list. More... | |
StatusCode | addPreLoadItem (std::string itemPath) |
Add an item to the preload list. More... | |
virtual StatusCode | removePreLoadItem (const DataStoreItem &item)=0 |
Remove an item from the preload list. More... | |
StatusCode | removePreLoadItem (std::string itemPath) |
Remove an item from the preload list. More... | |
virtual StatusCode | resetPreLoad ()=0 |
Clear the preload list. More... | |
virtual StatusCode | preLoad ()=0 |
Load all preload items of the list. More... | |
virtual StatusCode | linkObject (IRegistry *from, std::string_view objPath, DataObject *toObj)=0 |
Add a link to another object. More... | |
StatusCode | linkObject (std::string_view fromPath, std::string_view objPath, DataObject *toObj) |
Add a link to another object. More... | |
StatusCode | linkObject (DataObject *fromObj, std::string_view objPath, DataObject *toObj) |
Add a link to another object. More... | |
virtual StatusCode | linkObject (std::string_view fullPath, DataObject *toObj)=0 |
Add a link to another object. More... | |
virtual StatusCode | unlinkObject (IRegistry *from, std::string_view objPath)=0 |
Remove a link to another object. More... | |
StatusCode | unlinkObject (std::string_view fromPath, std::string_view objPath) |
Remove a link to another object. More... | |
virtual StatusCode | unlinkObject (DataObject *fromObj, std::string_view objPath)=0 |
Remove a link to another object. More... | |
virtual StatusCode | unlinkObject (std::string_view fullPath)=0 |
Remove a link to another object. More... | |
Public Member Functions inherited from IInterface | |
virtual void * | i_cast (const InterfaceID &) const =0 |
main cast function More... | |
virtual std::vector< std::string > | getInterfaceNames () const =0 |
Returns a vector of strings containing the names of all the implemented interfaces. More... | |
virtual unsigned long | addRef ()=0 |
Increment the reference count of Interface instance. More... | |
virtual unsigned long | release ()=0 |
Release Interface instance. More... | |
virtual unsigned long | refCount () const =0 |
Current reference count. More... | |
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
Set the void** to the pointer to the requested interface of the instance. More... | |
virtual | ~IInterface ()=default |
Virtual destructor. More... | |
Static Private Member Functions | |
static std::string | itemToPath (int item) |
Helper function to convert item numbers to path strings. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IInterface | |
static const InterfaceID & | interfaceID () |
Return an instance of InterfaceID identifying the interface. More... | |
Data provider interface definition. The data provider interface allows to:
Definition at line 53 of file IDataProviderSvc.h.
anonymous enum |
|
strong |
Status code definitions.
Definition at line 558 of file IDataProviderSvc.h.
|
pure virtual |
Add an item to the preload list.
item | Specs of item to be preloaded |
|
inline |
Add an item to the preload list.
The item is identified by the path to the object.
itemPath | Path to the item to be preloaded. |
Definition at line 443 of file IDataProviderSvc.h.
IDataProviderSvc::DeclareInterfaceID | ( | IDataProviderSvc | , |
4 | , | ||
0 | |||
) |
|
inline |
Find object identified by its parent object and an integer identifier in the data store.
In case the object is not present the pointer will be set to NULL.
parentObj | Pointer to parent node of the object. |
item | Item identifier. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 373 of file IDataProviderSvc.h.
|
inline |
Find object identified by its parent object and the path to the object relative to the parent.
The result will be returned in the second argument. In case the object is not present the pointer will be set to NULL.
parentObj | Pointer to parent node of the object. |
objectPath | Relative path name of the object. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 361 of file IDataProviderSvc.h.
|
pure virtual |
Find object identified by its directory entry.
The result will be returned in the second argument. In case the object is not present the pointer will be set to NULL. ** FASTEST ACCESS TO THE DATA STORE **
pDirectory | Pointer to the object. |
path | String with relative path to directory. Ideally ""! |
pObject | Reference to the pointer of the object to be returned. |
|
pure virtual |
Find object identified by its full path in the data store.
The result will be returned in the second argument. In case the object is not present the pointer will be set to NULL.
fullPath | Path name of the object. |
pObject | Pointer to the object to be connected. |
|
inline |
Find object identified by its parent object and an integer identifier in the data store.
In case the object is not present the pointer will be set to NULL.
parentPath | Path to parent node of the object. |
item | Item identifier. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 348 of file IDataProviderSvc.h.
|
inline |
Find object identified by its parent object and the path to the object relative to the parent.
The result will be returned in the second argument. In case the object is not present the pointer will be set to NULL.
parentPath | Path to parent node of the object. |
objectPath | Relative path name of the object. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 334 of file IDataProviderSvc.h.
|
inlinestaticprivate |
Helper function to convert item numbers to path strings.
Definition at line 57 of file IDataProviderSvc.h.
|
inline |
Add a link to another object.
Both objects must already be registered with the data store. Once linked, the object can only be unregistered after unlinking.
fromObj | Pointer to the object the link originates. |
objPath | Path of the entry to be linked relative to from. |
toObj | Pointer to the object the link points to. |
Definition at line 590 of file IDataProviderSvc.h.
|
pure virtual |
Add a link to another object.
Both objects must already be registered with the data store. Once linked, the object can only be unregistered after unlinking.
from | Pointer to data directory the link originates. |
objPath | Path of the entry to be linked relative to from. |
toObj | Pointer to the object the link points to. |
|
inline |
Add a link to another object.
Both objects must already be registered with the data store. Once linked, the object can only be unregistered after unlinking.
fromPath | Path to the object the link originates. |
objPath | Path of the entry to be linked relative to from. |
toObj | Pointer to the object the link points to. |
Definition at line 489 of file IDataProviderSvc.h.
|
pure virtual |
Add a link to another object.
Both objects must already be registered with the data store. Once linked, the object can only be unregistered after unlinking.
fullPath | Full path of the entry to be linked. |
toObj | Pointer to the object the link points to. |
|
pure virtual |
Load all preload items of the list.
|
inline |
Register object with the data store.
Connect the object identified by its pointer to the node object identified by its pointer.
parentObj | Pointer to parent object. |
item | item number of the object linked to the parent |
pObject | Pointer to the object to be connected. |
Definition at line 117 of file IDataProviderSvc.h.
|
pure virtual |
Register object with the data store.
Connect the object identified by its pointer to the parent object and the relative path of the object with respect to the parent.
parentObj | Pointer to parent object. |
objectPath | Path of the object relative to the parent node |
pObject | Pointer to the object to be connected. |
|
inline |
Register object with the data store.
Connect the object identified by its pointer to the node object identified by its path.
fullPath | Path to parent node of the object. |
pObject | Pointer to the object to be registered. |
Definition at line 72 of file IDataProviderSvc.h.
|
inline |
Register object with the data store.
Connect the object identified by its pointer to the parent object and an integer identifier.
parentPath | Path to parent node of the object. |
item | item number of the object linked to the parent |
pObject | Pointer to the object to be registered. |
Definition at line 95 of file IDataProviderSvc.h.
|
pure virtual |
Register object with the data store.
Connect the object identified by the path to the parent object and the path of the object itself relative to the specified parent.
parentPath | Path to parent node of the object. |
objectPath | Path of the object relative to the parent node |
pObject | Pointer to the object to be registered. |
|
pure virtual |
Remove an item from the preload list.
item | Specs of item to be removed from the preload list |
|
inline |
Remove an item from the preload list.
itemPath | Path to the item to be preloaded. |
Definition at line 457 of file IDataProviderSvc.h.
|
pure virtual |
Clear the preload list.
|
inline |
Retrieve object from data store.
The object to be retrieved is identified by the pointer to the parent object and an integer identifier. In case the object is not present it will be loaded and converted if possible.
parentObj | Pointer to parent node of the object. |
item | Item identifier. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 301 of file IDataProviderSvc.h.
|
inline |
Retrieve object from data store.
The object to be retrieved is identified by the pointer to the parent object and the relative path with respect to the node. In case the object is not present it will be loaded and converted if possible.
parentObj | Pointer to parent node of the object. |
objectPath | Path of the object relative to the parent. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 287 of file IDataProviderSvc.h.
|
pure virtual |
Retrieve object identified by its directory entry.
The result will be returned in the second argument. In case the object is not present it will be loaded and converted if possible. ** FASTEST ACCESS TO THE DATA STORE **
pDirectory | Pointer to the object. |
path | String with relative path to directory. Ideally ""! |
pObject | Reference to the pointer of the object to be returned. |
|
inline |
Retrieve object identified by its full path from the data store.
The result will be returned in the second argument. In case the object is not present it will be loaded and converted if possible.
fullPath | Path name of the object. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 243 of file IDataProviderSvc.h.
|
inline |
Retrieve object from data store.
The object to be retrieved is identified by the path to the parent object and an integer identifier. In case the object is not present it will be loaded and converted if possible.
parentPath | Path to parent node of the object. |
item | Item identifier. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 273 of file IDataProviderSvc.h.
|
inline |
Retrieve object from data store.
The object to be retrieved is identified by the path of the parent object and the relative path with respect to the node. In case the object is not present it will be loaded and converted if possible.
parentPath | Path to parent node of the object. |
objectPath | Path of the object relative to the parent. |
pObject | Reference to the pointer of the object to be returned. |
Definition at line 257 of file IDataProviderSvc.h.
|
pure virtual |
Remove a link to another object.
Both objects must be registered with the data store. This entry point can be used to unlink objects e.g. in order to unregister them.
fromObj | Pointer to the object the link originates. |
objPath | Path of the entry to be linked relative to from. |
|
pure virtual |
Remove a link to another object.
Both objects must be registered with the data store. This entry point can be used to unlink objects e.g. in order to unregister them.
from | Pointer to data directory the link originates. |
objPath | Path of the entry to be linked relative to from. |
|
inline |
Remove a link to another object.
Both objects must be registered with the data store. This entry point can be used to unlink objects e.g. in order to unregister them.
fromPath | Path to the object the link originates. |
objPath | Path of the entry to be linked relative to from. |
Definition at line 532 of file IDataProviderSvc.h.
|
pure virtual |
Remove a link to another object.
Both objects must be registered with the data store. This entry point can be used to unlink objects e.g. in order to unregister them.
fullPath | Full path of the entry to be linked. |
|
pure virtual |
Unregister object from the data store.
On registration the client gives up ownership of the object and may no longer delete the object. unregistering the object is the opposite: ownership is claimed back by the user. But note:
The object is identified by its pointer. The object must previously have been registered with the data store.
pObject | Pointer to the object. |
|
inline |
Unregister object from the data store.
On registration the client gives up ownership of the object and may no longer delete the object. unregistering the object is the opposite: ownership is claimed back by the user. But note:
The object is identified by parent object and an integer identifier of the object itself.
pParent | Pointer to parent object. |
item | Integer identifier of the object item. |
Definition at line 219 of file IDataProviderSvc.h.
|
pure virtual |
Unregister object from the data store.
On registration the client gives up ownership of the object and may no longer delete the object. unregistering the object is the opposite: ownership is claimed back by the user. But note:
The object is identified by parent object and the path of the object relative to the parent.
pParent | Pointer to parent object. |
objPath | Path name of the object relative to the parent. |
|
pure virtual |
Unregister object from the data store.
On registration the client gives up ownership of the object and may no longer delete the object. unregistering the object is the opposite: ownership is claimed back by the user. But note:
The object is identified by full path name.
fullPath | Path name of the object. |
|
inline |
Unregister object from the data store.
On registration the client gives up ownership of the object and may no longer delete the object. unregistering the object is the opposite: ownership is claimed back by the user. But note:
The object is identified by parent path name and an integer identifier of the object itself.
parentPath | Path name of the parent object. |
item | Integer identifier of the object item. |
Definition at line 170 of file IDataProviderSvc.h.
|
inline |
Unregister object from the data store.
On registration the client gives up ownership of the object and may no longer delete the object. unregistering the object is the opposite: ownership is claimed back by the user. But note:
The object is identified by parent path name and the path of the object relative to the parent.
parentPath | Path name of the parent object. |
objPath | Path name of the object relative to the parent. |
Definition at line 150 of file IDataProviderSvc.h.
|
inline |
Update object identified by its parent's pointer and the path relative to the parent.
If found, the object update will be initiated. In case the object is not present the entry point returns an error.
pParent | Pointer to the parent object. |
updatePath | Path to the object relative to the parent. |
Definition at line 426 of file IDataProviderSvc.h.
|
pure virtual |
Update object identified by its pointer.
If found, the object update will be initiated. In case the object is not present the entry point returns an error.
toUpdate | Pointer to the object. |
|
pure virtual |
Update object identified by its directory entry.
** FASTEST ACCESS TO THE DATA STORE **
pDirectory | Pointer to the directory entry. |
|
inline |
Update object identified by its full path in the data store.
If found, the object update will be initiated. In case the object is not present the entry point returns an error.
fullPath | Path name of the object. |
Definition at line 390 of file IDataProviderSvc.h.
|
inline |
Update object identified by its parent's path and the path relative to the parent.
If found, the object update will be initiated. In case the object is not present the entry point returns an error.
parentPath | Path name of the parent object. |
updatePath | Path to the object relative to the parent. |
Definition at line 412 of file IDataProviderSvc.h.