#include <GaudiKernel/LinkManager.h>
Public Types | |
typedef std::vector< Link * > | LinkVector |
typedef LinkVector::iterator | LinkIterator |
Data type: iterator over leaf links. | |
typedef LinkVector::const_iterator | ConstLinkIterator |
Data type: iterator over leaf links (CONST). | |
INVALID | |
VALID | |
enum | DirLinkType { INVALID, VALID } |
Directory link types. More... | |
Public Member Functions | |
LinkManager () | |
Standard Constructor. | |
virtual | ~LinkManager () |
Standard Destructor. | |
long | size () const |
Retrieve number of link present. | |
Link * | link (long id) |
Retrieve symbolic link identified by ID. | |
Link * | link (const DataObject *pObject) |
Retrieve symbolic link identified by object. | |
Link * | link (const std::string &path) |
Retrieve symbolic link identified by path. | |
long | addLink (const std::string &path, const DataObject *pObject) const |
Add link by object reference and path. | |
long | removeLink (const DataObject *pObject) const |
Remove link by object reference. | |
long | removeLink (const std::string &fullPath) const |
Remove link by object reference. | |
long | removeLink (long id) const |
Remove link by link ID. | |
void | clearLinks () |
Remove all possibly existing symbolic links. | |
Static Public Member Functions | |
static LinkManager * | newInstance () |
Static instantiation. | |
static void | setInstantiator (LinkManager *(*newInstance)()) |
Assign new instantiator. | |
Public Attributes | |
LinkVector | m_linkVector |
The vector containing all links which are non-tree like. | |
Classes | |
class | Link |
Embeeded class defining a symbolic link Note: No copy constructor; bitwise copy (done by the compiler) is just fine. More... |
Definition at line 18 of file LinkManager.h.
typedef std::vector<Link*> LinkManager::LinkVector |
Definition at line 86 of file LinkManager.h.
typedef LinkVector::iterator LinkManager::LinkIterator |
typedef LinkVector::const_iterator LinkManager::ConstLinkIterator |
LinkManager::LinkManager | ( | ) |
Standard Constructor.
virtual LinkManager::~LinkManager | ( | ) | [virtual] |
Standard Destructor.
static LinkManager* LinkManager::newInstance | ( | ) | [static] |
Static instantiation.
static void LinkManager::setInstantiator | ( | LinkManager *(*)() | newInstance | ) | [static] |
Assign new instantiator.
long LinkManager::size | ( | ) | const [inline] |
Retrieve number of link present.
Definition at line 105 of file LinkManager.h.
00105 { 00106 return m_linkVector.size(); 00107 }
Link* LinkManager::link | ( | long | id | ) |
Retrieve symbolic link identified by ID.
Link* LinkManager::link | ( | const DataObject * | pObject | ) |
Retrieve symbolic link identified by object.
Link* LinkManager::link | ( | const std::string & | path | ) |
Retrieve symbolic link identified by path.
long LinkManager::addLink | ( | const std::string & | path, | |
const DataObject * | pObject | |||
) | const |
Add link by object reference and path.
long LinkManager::removeLink | ( | const DataObject * | pObject | ) | const |
Remove link by object reference.
long LinkManager::removeLink | ( | const std::string & | fullPath | ) | const |
Remove link by object reference.
long LinkManager::removeLink | ( | long | id | ) | const |
Remove link by link ID.
void LinkManager::clearLinks | ( | ) |
Remove all possibly existing symbolic links.
LinkVector LinkManager::m_linkVector [mutable] |
The vector containing all links which are non-tree like.
Definition at line 93 of file LinkManager.h.