The Gaudi Framework
v25r5
|
A LinkManager is the object aggregated into a DataObject, which is responsible for the handling of non-tree like links. More...
#include <GaudiKernel/LinkManager.h>
Classes | |
class | Link |
Embedded class defining a symbolic link Note: No copy constructor; bitwise copy (done by the compiler) is just fine. More... | |
Public Types | |
enum | DirLinkType { INVALID, VALID } |
Directory link types. More... | |
typedef std::vector< Link * > | LinkVector |
typedef LinkVector::iterator | LinkIterator |
Data type: iterator over leaf links. More... | |
typedef LinkVector::const_iterator | ConstLinkIterator |
Data type: iterator over leaf links (CONST) More... | |
Public Member Functions | |
LinkManager () | |
Standard Constructor. More... | |
virtual | ~LinkManager () |
Standard Destructor. More... | |
long | size () const |
Retrieve number of link present. More... | |
Link * | link (long id) |
Retrieve symbolic link identified by ID. More... | |
Link * | link (const DataObject *pObject) |
Retrieve symbolic link identified by object. More... | |
Link * | link (const std::string &path) |
Retrieve symbolic link identified by path. More... | |
long | addLink (const std::string &path, const DataObject *pObject) const |
Add link by object reference and path. More... | |
long | removeLink (const DataObject *pObject) const |
Remove link by object reference. More... | |
long | removeLink (const std::string &fullPath) const |
Remove link by object reference. More... | |
long | removeLink (long id) const |
Remove link by link ID. More... | |
void | clearLinks () |
Remove all possibly existing symbolic links. More... | |
Static Public Member Functions | |
static LinkManager * | newInstance () |
Static instantiation. More... | |
static void | setInstantiator (LinkManager *(*newInstance)()) |
Assign new instantiator. More... | |
Public Attributes | |
LinkVector | m_linkVector |
The vector containing all links which are non-tree like. More... | |
A LinkManager is the object aggregated into a DataObject, which is responsible for the handling of non-tree like links.
Definition at line 20 of file LinkManager.h.
typedef LinkVector::const_iterator LinkManager::ConstLinkIterator |
Data type: iterator over leaf links (CONST)
Definition at line 92 of file LinkManager.h.
typedef LinkVector::iterator LinkManager::LinkIterator |
Data type: iterator over leaf links.
Definition at line 90 of file LinkManager.h.
typedef std::vector<Link*> LinkManager::LinkVector |
Definition at line 88 of file LinkManager.h.
Directory link types.
Enumerator | |
---|---|
INVALID | |
VALID |
Definition at line 24 of file LinkManager.h.
LinkManager::LinkManager | ( | ) |
|
virtual |
Standard Destructor.
Standard Constructor.
Definition at line 36 of file LinkManager.cpp.
long LinkManager::addLink | ( | const std::string & | path, |
const DataObject * | pObject | ||
) | const |
Add link by object reference and path.
Add link by object reference and path string.
Definition at line 70 of file LinkManager.cpp.
void LinkManager::clearLinks | ( | ) |
Remove all possibly existing symbolic links.
Definition at line 131 of file LinkManager.cpp.
LinkManager::Link * LinkManager::link | ( | long | id | ) |
Retrieve symbolic link identified by ID.
Definition at line 41 of file LinkManager.cpp.
LinkManager::Link * LinkManager::link | ( | const DataObject * | pObject | ) |
Retrieve symbolic link identified by object.
Retrieve symbolic link identified by Object pointer.
Definition at line 46 of file LinkManager.cpp.
LinkManager::Link * LinkManager::link | ( | const std::string & | path | ) |
Retrieve symbolic link identified by path.
Retrieve symbolic link identified by Object path.
Definition at line 58 of file LinkManager.cpp.
|
static |
long LinkManager::removeLink | ( | const DataObject * | pObject | ) | const |
Remove link by object reference.
Definition at line 94 of file LinkManager.cpp.
long LinkManager::removeLink | ( | const std::string & | fullPath | ) | const |
Remove link by object reference.
Definition at line 108 of file LinkManager.cpp.
long LinkManager::removeLink | ( | long | id | ) | const |
Remove link by link ID.
Definition at line 122 of file LinkManager.cpp.
|
static |
Assign new instantiator.
Definition at line 22 of file LinkManager.cpp.
|
inline |
Retrieve number of link present.
Definition at line 107 of file LinkManager.h.
|
mutable |
The vector containing all links which are non-tree like.
Definition at line 95 of file LinkManager.h.