1 #ifndef GAUDIKERNEL_DATASTOREITEM_H 2 #define GAUDIKERNEL_DATASTOREITEM_H 41 m_depth = cmp.
depth();
48 int len = m_path.
length() - 1;
49 if ( m_path[len] ==
'*' ) {
51 ( m_path[len - 1] ==
'/' ) ? m_path.
erase( len - 1, 2 ) : m_path.
erase( len, 1 );
52 }
else if ( m_path[len] ==
'+' ) {
53 ( m_path[len - 1] ==
'/' ) ? m_path.
erase( len - 1, 2 ) : m_path.
erase( len, 1 );
62 #endif // GAUDIKERNEL_DATASTOREITEM_H int depth() const
Accessor: Retrieve load depth.
std::string m_path
Path of item to be loaded.
bool operator!=(const DataStoreItem &cmp) const
Inequality operator.
Description of the DataStoreItem class.
const std::string & path() const
Accessor: Retrieve load path.
void analyse()
Interprete the load path for special options.
DataStoreItem(std::string path, int depth=1)
Standard Constructor.
int m_depth
Depth to be auto-loaded from the requested path onwards.
bool operator==(const DataStoreItem &cmp) const
Equality operator.
virtual ~DataStoreItem()=default
Standard Destructor.
DataStoreItem & operator=(const DataStoreItem &cmp)
Equivalence operator.
DataStoreItem(const DataStoreItem &item)
Copy constructor.