|
Gaudi Framework, version v22r0 |
| Home | Generated: 9 Feb 2011 |
Description of the DataStoreItem class. More...
#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. | |
Description of the DataStoreItem class.
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] |
| 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 }
| int DataStoreItem::depth | ( | ) | const [inline] |
Accessor: Retrieve load depth.
Definition at line 70 of file DataStoreItem.h.
00070 { 00071 return m_depth; 00072 }
| bool DataStoreItem::operator!= | ( | const DataStoreItem & | cmp | ) | const [inline] |
| DataStoreItem& DataStoreItem::operator= | ( | const DataStoreItem & | cmp | ) | [inline] |
| bool DataStoreItem::operator== | ( | const DataStoreItem & | cmp | ) | const [inline] |
| 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::m_depth [protected] |
Depth to be auto-loaded from the requested path onwards.
Definition at line 23 of file DataStoreItem.h.
std::string DataStoreItem::m_path [protected] |
Path of item to be loaded.
Definition at line 21 of file DataStoreItem.h.