#include <GaudiKernel/DataStoreItem.h>
Public Member Functions | |
DataStoreItem (const std::string &path, int depth=1) | |
Standard Constructor. | |
DataStoreItem (const DataStoreItem &item) | |
Copy constructor. | |
virtual | ~DataStoreItem () |
Standard Destructor. | |
bool | operator== (const DataStoreItem &cmp) const |
Equality operator. | |
bool | operator!= (const DataStoreItem &cmp) const |
Inequality operator. | |
DataStoreItem & | operator= (const DataStoreItem &cmp) |
Equivalence operator. | |
void | analyse () |
Interprete the load path for special options. | |
const std::string & | path () const |
Accessor: Retrieve load path. | |
int | depth () const |
Accessor: Retrieve load depth. | |
Protected Attributes | |
std::string | m_path |
Path of item to be loaded. | |
int | m_depth |
Depth to be auto-loaded from the requested path onwards. |
DataStoreItems describe in an abstract way an item in the data store. Items can be supplied to the services in order to e.g. trigger preloading or writing.
Definition at line 18 of file DataStoreItem.h.
DataStoreItem::DataStoreItem | ( | const std::string & | path, | |
int | depth = 1 | |||
) | [inline] |
DataStoreItem::DataStoreItem | ( | const DataStoreItem & | item | ) | [inline] |
virtual DataStoreItem::~DataStoreItem | ( | ) | [inline, virtual] |
bool DataStoreItem::operator== | ( | const DataStoreItem & | cmp | ) | const [inline] |
bool DataStoreItem::operator!= | ( | const DataStoreItem & | cmp | ) | const [inline] |
DataStoreItem& DataStoreItem::operator= | ( | const DataStoreItem & | cmp | ) | [inline] |
void DataStoreItem::analyse | ( | ) | [inline] |
Interprete the load path for special options.
Definition at line 54 of file DataStoreItem.h.
00054 { 00055 int len = m_path.length()-1; 00056 if ( m_path[len] == '*' ) { 00057 m_depth = 99999999; 00058 (m_path[len-1] == '/') ? m_path.erase(len-1, 2) : m_path.erase(len, 1); 00059 } 00060 else if ( m_path[len] == '+' ) { 00061 (m_path[len-1] == '/') ? m_path.erase(len-1, 2) : m_path.erase(len, 1); 00062 m_depth = 2; 00063 } 00064 }
const std::string& DataStoreItem::path | ( | ) | const [inline] |
Accessor: Retrieve load path.
Definition at line 66 of file DataStoreItem.h.
00066 { 00067 return m_path; 00068 }
int DataStoreItem::depth | ( | ) | const [inline] |
Accessor: Retrieve load depth.
Definition at line 70 of file DataStoreItem.h.
00070 { 00071 return m_depth; 00072 }
std::string DataStoreItem::m_path [protected] |
int DataStoreItem::m_depth [protected] |
Depth to be auto-loaded from the requested path onwards.
Definition at line 23 of file DataStoreItem.h.