24 #include <pni/core/types.hpp>
25 #include <boost/property_tree/ptree.hpp>
39 using node = boost::property_tree::ptree;
node get_child_by_name(const node &parent, const pni::core::string &name)
bool has_attribute(const node &parent, const pni::core::string &name)
check for attribute existence
node create_from_file(const pni::core::string &s)
create xml node from file
node create_from_string(const pni::core::string &s)
create xml node from string
std::ostream & operator<<(std::ostream &o, const node &n)
XML stream output.
Definition: node.cpp:129
pni::core::string get_name(const node &n)
get name of a node
Definition: node.cpp:138
Definition: cbf_reader.hpp:41
boost::property_tree::ptree node
alias for ptree
Definition: node.hpp:39
pni::core::string attribute_path(const pni::core::string &name)
create an attribute path
node get_attribute(const node &parent, const pni::core::string &name)
get attribute node