24 #include <pni/core/types.hpp>
26 #include "../nxpath/nxpath.hpp"
66 object_type target = o;
72 if(element.first ==
"/")
74 else if (element.first ==
".")
76 else if (element.first ==
"..")
79 target =
get_child(target,element.first,element.second);
83 if(!p.attribute().empty())
Definition: cbf_reader.hpp:41
nxobject_trait< IMPID >::object_type get_attribute(const PTYPE< IMPID > &parent, const pni::core::string &name)
get attribute by name
Definition: get_attribute.hpp:59
auto get_child(const OTYPE &o, const pni::core::string &n, const pni::core::string &c="") -> decltype(get_parent(o))
get child by name and/or class
Definition: get_child.hpp:59
auto get_object(const OTYPE &o, const PATHT &path) -> decltype(get_parent(o))
retrieve an object from path
Definition: get_object.hpp:62
auto get_root(const OTYPE &p) -> decltype(get_parent(p))
get root
Definition: get_root.hpp:47
nxobject_trait< IMPID >::object_type get_parent(const OTYPE< IMPID > &o)
return parent
Definition: get_parent.hpp:53
Nexus path class.
Definition: nxpath/nxpath.hpp:60
pni::core::string get_path(const OTYPE< IMPID > &o)
get object path
Definition: get_path.hpp:59