1 #ifndef GAUDIKERNEL_DATASTOREITEM_H 2 #define GAUDIKERNEL_DATASTOREITEM_H 39 m_depth = cmp.
depth();
45 int len = m_path.
length() - 1;
46 if ( m_path[len] ==
'*' ) {
48 ( m_path[len - 1] ==
'/' ) ? m_path.
erase( len - 1, 2 ) : m_path.
erase( len, 1 );
49 }
else if ( m_path[len] ==
'+' ) {
50 ( m_path[len - 1] ==
'/' ) ? m_path.
erase( len - 1, 2 ) : m_path.
erase( len, 1 );
59 #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.