26 #include <pni/core/types.hpp>
64 typedef std::pair<pni::core::string,pni::core::string>
element_type;
94 explicit nxpath(
const pni::core::string &file,
95 const elements_type &groups,
96 const pni::core::string &attr);
209 return _elements.front();
220 element_type
back()
const;
243 const_iterator
begin()
const;
249 const_iterator
end()
const;
iterator begin()
get iterator to first element
Definition: nxpath.cpp:144
static nxpath from_string(const pni::core::string &input)
create path from string
Definition: nxpath.cpp:52
elements_type::iterator iterator
iterator over elements
Definition: nxpath/nxpath.hpp:68
pni::core::string _file_name
name of the file
Definition: nxpath/nxpath.hpp:74
void pop_front()
last element from path
Definition: nxpath.cpp:120
void push_front(const element_type &o)
prepend element
Definition: nxpath.cpp:114
std::list< element_type > elements_type
a list of subsequent objects
Definition: nxpath/nxpath.hpp:66
elements_type::const_iterator const_iterator
const iterator over elements
Definition: nxpath/nxpath.hpp:70
element_type front() const
get last element
Definition: nxpath/nxpath.hpp:207
iterator end()
get iterator to last+1 element
Definition: nxpath.cpp:150
size_t size() const
return number of group entries
Definition: nxpath.cpp:138
pni::core::string filename() const noexcept
return the filename
Definition: nxpath.cpp:79
static pni::core::string to_string(const nxpath &p)
create string from path
Definition: nxpath.cpp:58
void pop_back()
remove first element from path
Definition: nxpath.cpp:126
Definition: cbf_reader.hpp:41
std::pair< pni::core::string, pni::core::string > element_type
object element (groupname:class)
Definition: nxpath/nxpath.hpp:64
bool has_attribute() const noexcept
true if has attribute
Definition: nxpath.cpp:73
void push_back(const element_type &o)
append element
Definition: nxpath.cpp:103
Nexus path class.
Definition: nxpath/nxpath.hpp:60
elements_type _elements
list of groups
Definition: nxpath/nxpath.hpp:78
element_type back() const
get first element
Definition: nxpath.cpp:132
pni::core::string attribute() const noexcept
return the attribute name
Definition: nxpath.cpp:91
bool has_filename() const noexcept
true if has filename
Definition: nxpath.cpp:67
nxpath()
default constructor
Definition: nxpath.cpp:36
pni::core::string _attribute_name
name of an attribute
Definition: nxpath/nxpath.hpp:76