![]() |
|
|
Generated: 18 Jul 2008 |
#include <GaudiKernel/DataStoreItem.h>
Collaboration diagram for DataStoreItem:

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.
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. | |
| 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.
References std::basic_string< _CharT, _Traits, _Alloc >::erase(), std::basic_string< _CharT, _Traits, _Alloc >::length(), m_depth, and m_path.
Referenced by DataStoreItem(), and operator=().
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.
References m_path.
Referenced by OutputStream::addItem(), OutputStream::collectObjects(), InputCopyStream::collectObjects(), operator!=(), operator=(), and operator==().
00066 { 00067 return m_path; 00068 }
| int DataStoreItem::depth | ( | ) | const [inline] |
Accessor: Retrieve load depth.
Definition at line 70 of file DataStoreItem.h.
References m_depth.
Referenced by OutputStream::addItem(), operator!=(), operator=(), and operator==().
00070 { 00071 return m_depth; 00072 }
std::string DataStoreItem::m_path [protected] |
Path of item to be loaded.
Definition at line 21 of file DataStoreItem.h.
Referenced by analyse(), operator!=(), operator=(), operator==(), and path().
int DataStoreItem::m_depth [protected] |
Depth to be auto-loaded from the requested path onwards.
Definition at line 23 of file DataStoreItem.h.
Referenced by analyse(), depth(), operator!=(), operator=(), and operator==().