libyang  1.0.253
YANG data modeling language library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Xml_Elem Class Reference

#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
 

Detailed Description

Definition at line 86 of file Xml.hpp.

Constructor & Destructor Documentation

Xml_Elem ( S_Context  context,
struct lyxml_elem elem,
S_Deleter  deleter 
)

wrapper for struct lyxml_elem, for internal use only

Definition at line 45 of file Xml.cpp.

~Xml_Elem ( )

Definition at line 50 of file Xml.cpp.

Member Function Documentation

char flags ( )
inline

get flags variable from lyxml_elem

Definition at line 93 of file Xml.hpp.

S_Xml_Elem parent ( )

get parent variable from lyxml_elem

Definition at line 51 of file Xml.cpp.

S_Xml_Attr attr ( )

get attr variable from lyxml_elem

Definition at line 52 of file Xml.cpp.

S_Xml_Elem child ( )

get child variable from lyxml_elem

Definition at line 53 of file Xml.cpp.

S_Xml_Elem next ( )

get next variable from lyxml_elem

Definition at line 54 of file Xml.cpp.

S_Xml_Elem prev ( )

get prev variable from lyxml_elem

Definition at line 55 of file Xml.cpp.

const char* name ( )
inline

get name variable from lyxml_elem

Definition at line 105 of file Xml.hpp.

S_Xml_Ns ns ( )

get ns variable from lyxml_elem

Definition at line 56 of file Xml.cpp.

const char* content ( )
inline

get content variable from lyxml_elem

Definition at line 109 of file Xml.hpp.

const char * get_attr ( const char *  name,
const char *  ns = nullptr 
)

wrapper for lyxml_get_attr

Definition at line 57 of file Xml.cpp.

S_Xml_Ns get_ns ( const char *  prefix)

wrapper for lyxml_get_ns

Definition at line 60 of file Xml.cpp.

std::string print_mem ( int  options)

wrapper for lyxml_print_mem

Definition at line 64 of file Xml.cpp.

std::vector< S_Xml_Elem > tree_for ( )

wrapper for macro LY_TREE_FOR

Definition at line 77 of file Xml.cpp.

std::vector< S_Xml_Elem > tree_dfs ( )

wrapper for macro LY_TREE_DFS_BEGIN and LY_TREE_DFS_END

Definition at line 87 of file Xml.cpp.

Field Documentation

friend Data_Node

Definition at line 133 of file Xml.hpp.

friend Context

Definition at line 134 of file Xml.hpp.


The documentation for this class was generated from the following files: