libyang
1.0.253
YANG data modeling language library
|
#include <Xml.hpp>
Public Member Functions | |
Xml_Elem (S_Context context, struct lyxml_elem *elem, S_Deleter deleter) | |
~Xml_Elem () | |
char | flags () |
S_Xml_Elem | parent () |
S_Xml_Attr | attr () |
S_Xml_Elem | child () |
S_Xml_Elem | next () |
S_Xml_Elem | prev () |
const char * | name () |
S_Xml_Ns | ns () |
const char * | content () |
const char * | get_attr (const char *name, const char *ns=nullptr) |
S_Xml_Ns | get_ns (const char *prefix) |
std::string | print_mem (int options) |
std::vector< S_Xml_Elem > | tree_for () |
std::vector< S_Xml_Elem > | tree_dfs () |
Data Fields | |
friend | Data_Node |
friend | Context |
Xml_Elem | ( | S_Context | context, |
struct lyxml_elem * | elem, | ||
S_Deleter | deleter | ||
) |
wrapper for struct lyxml_elem, for internal use only
|
inline |
get flags variable from lyxml_elem
S_Xml_Elem parent | ( | ) |
get parent variable from lyxml_elem
S_Xml_Attr attr | ( | ) |
get attr variable from lyxml_elem
S_Xml_Elem child | ( | ) |
get child variable from lyxml_elem
S_Xml_Elem next | ( | ) |
get next variable from lyxml_elem
S_Xml_Elem prev | ( | ) |
get prev variable from lyxml_elem
|
inline |
get name variable from lyxml_elem
S_Xml_Ns ns | ( | ) |
get ns variable from lyxml_elem
|
inline |
get content variable from lyxml_elem
const char * get_attr | ( | const char * | name, |
const char * | ns = nullptr |
||
) |
wrapper for lyxml_get_attr
S_Xml_Ns get_ns | ( | const char * | prefix | ) |
wrapper for lyxml_get_ns
std::string print_mem | ( | int | options | ) |
wrapper for lyxml_print_mem
std::vector< S_Xml_Elem > tree_for | ( | ) |
wrapper for macro LY_TREE_FOR
std::vector< S_Xml_Elem > tree_dfs | ( | ) |
wrapper for macro LY_TREE_DFS_BEGIN and LY_TREE_DFS_END