53 if (
m_path.empty() )
return;
54 const size_t len =
m_path.length() - 1;
55 if (
m_path[len] ==
'*' ) {
57 ( len > 0 &&
m_path[len - 1] ==
'/' ) ?
m_path.erase( len - 1, 2 ) :
m_path.erase( len, 1 );
58 }
else if (
m_path[len] ==
'+' ) {
59 ( len > 0 &&
m_path[len - 1] ==
'/' ) ?
m_path.erase( len - 1, 2 ) :
m_path.erase( len, 1 );
bool operator!=(const DataStoreItem &cmp) const
Inequality operator.
void analyse()
Interprete the load path for special options.
DataStoreItem(const DataStoreItem &item)
Copy constructor.
int m_depth
Depth to be auto-loaded from the requested path onwards.
int depth() const
Accessor: Retrieve load depth.
const std::string & path() const
Accessor: Retrieve load path.
DataStoreItem & operator=(const DataStoreItem &cmp)
Equivalence operator.
DataStoreItem(std::string path, int depth=1)
Standard Constructor.
bool operator==(const DataStoreItem &cmp) const
Equality operator.
virtual ~DataStoreItem()=default
Standard Destructor.
std::string m_path
Path of item to be loaded.