1 #ifndef GAUDIKERNEL_REGISTRYENTRY_H 2 #define GAUDIKERNEL_REGISTRYENTRY_H 10 #include <boost/utility/string_ref.hpp> 43 friend class ::DataSvc;
45 friend class ::TsDataSvc;
51 unsigned long m_refCount = 0;
53 bool m_isSoft =
false;
112 unsigned long release()
override;
114 unsigned long addRef()
override {
return ++m_refCount; }
128 virtual bool isSoft()
const {
return m_isSoft; }
130 const Store&
leaves()
const {
return m_store; }
132 virtual int size()
const {
return m_store.
size(); }
138 virtual Iterator
end()
const {
return m_store.
end(); }
159 virtual long deleteElements();
164 #endif // GAUDIKERNEL_REGISTRYENTRY_H
RegistryEntry * findLeaf(boost::string_ref path) const
Find identified leaf in this registry node.
DataObject * object() const override
Retrive object behind the link.
const std::string & name() const override
Retrieve name of the entry.
unsigned long addRef() override
IInterface implementation: Dereference the object.
RegistryEntry * findLeaf(const DataObject *key) const
Find identified leaf in this registry node.
std::vector< IRegistry * > Store
Definition of datastore type.
const Store & leaves() const
Access the leaves of the object.
Data provider interface definition.
virtual RegistryEntry * parentEntry()
Pointer to parent registry entry.
std::string m_fullpath
String containing full path of the object (volatile)
virtual bool isSoft() const
Is the link soft or hard.
IDataProviderSvc * dataSvc() const override
Retrieve pointer to Transient Store.
virtual Iterator begin() const
Return starting point for container iteration.
void setDataSvc(IDataProviderSvc *s)
Set the transient data store.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
virtual bool isEmpty() const
Simple check if the Container is empty.
Store::const_iterator Iterator
Iterator definition.
IOpaqueAddress * address() const override
Retrieve opaque storage address.
Definition of an entry in the transient data store.
virtual IRegistry * find(const std::string &path) const
Try to find an object identified by its relative name to the directory.
virtual IRegistry * parent() const
Pointer to parent directory entry.
Generic data agent interface.
virtual int size() const
Return the size of the container(=number of objects)
Store m_store
Store of leaves.
std::string m_path
Path name.
const std::string & identifier() const override
Full identifier (or key)
Opaque address interface definition.
A DataObject is the base class of any identifiable object on any data store.
virtual IRegistry * find(const IRegistry *obj) const
Try to find an object identified by its pointer.
virtual Iterator end() const
Return end elemtn if the container.