HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pugi::xml_node Class Reference

#include <pugixml.hpp>

+ Inheritance diagram for pugi::xml_node:

Public Types

typedef xml_node_iterator iterator
 
typedef xml_attribute_iterator attribute_iterator
 

Public Member Functions

 xml_node ()
 
 xml_node (xml_node_struct *p)
 
 operator unspecified_bool_type () const
 
bool operator! () const
 
bool operator== (const xml_node &r) const
 
bool operator!= (const xml_node &r) const
 
bool operator< (const xml_node &r) const
 
bool operator> (const xml_node &r) const
 
bool operator<= (const xml_node &r) const
 
bool operator>= (const xml_node &r) const
 
bool empty () const
 
xml_node_type type () const
 
const char_tname () const
 
const char_tvalue () const
 
xml_attribute first_attribute () const
 
xml_attribute last_attribute () const
 
xml_node first_child () const
 
xml_node last_child () const
 
xml_node next_sibling () const
 
xml_node previous_sibling () const
 
xml_node parent () const
 
xml_node root () const
 
xml_text text () const
 
xml_node child (const char_t *name) const
 
xml_attribute attribute (const char_t *name) const
 
xml_node next_sibling (const char_t *name) const
 
xml_node previous_sibling (const char_t *name) const
 
xml_attribute attribute (const char_t *name, xml_attribute &hint) const
 
const char_tchild_value () const
 
const char_tchild_value (const char_t *name) const
 
bool set_name (const char_t *rhs)
 
bool set_value (const char_t *rhs)
 
xml_attribute append_attribute (const char_t *name)
 
xml_attribute prepend_attribute (const char_t *name)
 
xml_attribute insert_attribute_after (const char_t *name, const xml_attribute &attr)
 
xml_attribute insert_attribute_before (const char_t *name, const xml_attribute &attr)
 
xml_attribute append_copy (const xml_attribute &proto)
 
xml_attribute prepend_copy (const xml_attribute &proto)
 
xml_attribute insert_copy_after (const xml_attribute &proto, const xml_attribute &attr)
 
xml_attribute insert_copy_before (const xml_attribute &proto, const xml_attribute &attr)
 
xml_node append_child (xml_node_type type=node_element)
 
xml_node prepend_child (xml_node_type type=node_element)
 
xml_node insert_child_after (xml_node_type type, const xml_node &node)
 
xml_node insert_child_before (xml_node_type type, const xml_node &node)
 
xml_node append_child (const char_t *name)
 
xml_node prepend_child (const char_t *name)
 
xml_node insert_child_after (const char_t *name, const xml_node &node)
 
xml_node insert_child_before (const char_t *name, const xml_node &node)
 
xml_node append_copy (const xml_node &proto)
 
xml_node prepend_copy (const xml_node &proto)
 
xml_node insert_copy_after (const xml_node &proto, const xml_node &node)
 
xml_node insert_copy_before (const xml_node &proto, const xml_node &node)
 
xml_node append_move (const xml_node &moved)
 
xml_node prepend_move (const xml_node &moved)
 
xml_node insert_move_after (const xml_node &moved, const xml_node &node)
 
xml_node insert_move_before (const xml_node &moved, const xml_node &node)
 
bool remove_attribute (const xml_attribute &a)
 
bool remove_attribute (const char_t *name)
 
bool remove_attributes ()
 
bool remove_child (const xml_node &n)
 
bool remove_child (const char_t *name)
 
bool remove_children ()
 
xml_parse_result append_buffer (const void *contents, size_t size, unsigned int options=parse_default, xml_encoding encoding=encoding_auto)
 
template<typename Predicate >
xml_attribute find_attribute (Predicate pred) const
 
template<typename Predicate >
xml_node find_child (Predicate pred) const
 
template<typename Predicate >
xml_node find_node (Predicate pred) const
 
xml_node find_child_by_attribute (const char_t *name, const char_t *attr_name, const char_t *attr_value) const
 
xml_node find_child_by_attribute (const char_t *attr_name, const char_t *attr_value) const
 
string_t path (char_t delimiter= '/') const
 
xml_node first_element_by_path (const char_t *path, char_t delimiter= '/') const
 
bool traverse (xml_tree_walker &walker)
 
xpath_node select_node (const char_t *query, xpath_variable_set *variables=PUGIXML_NULL) const
 
xpath_node select_node (const xpath_query &query) const
 
xpath_node_set select_nodes (const char_t *query, xpath_variable_set *variables=PUGIXML_NULL) const
 
xpath_node_set select_nodes (const xpath_query &query) const
 
PUGIXML_DEPRECATED xpath_node select_single_node (const char_t *query, xpath_variable_set *variables=PUGIXML_NULL) const
 
PUGIXML_DEPRECATED xpath_node select_single_node (const xpath_query &query) const
 
void print (xml_writer &writer, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, xml_encoding encoding=encoding_auto, unsigned int depth=0) const
 
void print (std::basic_ostream< char, std::char_traits< char > > &os, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, xml_encoding encoding=encoding_auto, unsigned int depth=0) const
 
void print (std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &os, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, unsigned int depth=0) const
 
iterator begin () const
 
iterator end () const
 
attribute_iterator attributes_begin () const
 
attribute_iterator attributes_end () const
 
xml_object_range
< xml_node_iterator
children () const
 
xml_object_range
< xml_named_node_iterator
children (const char_t *name) const
 
xml_object_range
< xml_attribute_iterator
attributes () const
 
ptrdiff_t offset_debug () const
 
size_t hash_value () const
 
xml_node_structinternal_object () const
 

Protected Types

typedef void(* unspecified_bool_type )(xml_node ***)
 

Protected Attributes

xml_node_struct_root
 

Friends

class xml_attribute_iterator
 
class xml_node_iterator
 
class xml_named_node_iterator
 

Detailed Description

Definition at line 482 of file pugixml.hpp.

Member Typedef Documentation

Definition at line 710 of file pugixml.hpp.

typedef void(* pugi::xml_node::unspecified_bool_type)(xml_node ***)
protected

Definition at line 491 of file pugixml.hpp.

Constructor & Destructor Documentation

PUGI__FN pugi::xml_node::xml_node ( )

Definition at line 5431 of file pugixml.cpp.

PUGI__FN pugi::xml_node::xml_node ( xml_node_struct p)
explicit

Definition at line 5435 of file pugixml.cpp.

Member Function Documentation

PUGI__FN xml_attribute pugi::xml_node::append_attribute ( const char_t name)

Definition at line 5700 of file pugixml.cpp.

PUGI__FN xml_parse_result pugi::xml_node::append_buffer ( const void contents,
size_t  size,
unsigned int  options = parse_default,
xml_encoding  encoding = encoding_auto 
)

Definition at line 6163 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::append_child ( xml_node_type  type = node_element)

Definition at line 5840 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::append_child ( const char_t name)

Definition at line 5910 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::append_copy ( const xml_attribute proto)

Definition at line 5770 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::append_copy ( const xml_node proto)

Definition at line 5946 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::append_move ( const xml_node moved)

Definition at line 6016 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::attribute ( const char_t name) const

Definition at line 5548 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::attribute ( const char_t name,
xml_attribute hint 
) const

Definition at line 5584 of file pugixml.cpp.

PUGI__FN xml_object_range< xml_attribute_iterator > pugi::xml_node::attributes ( ) const

Definition at line 5483 of file pugixml.cpp.

PUGI__FN xml_node::attribute_iterator pugi::xml_node::attributes_begin ( ) const

Definition at line 5463 of file pugixml.cpp.

PUGI__FN xml_node::attribute_iterator pugi::xml_node::attributes_end ( ) const

Definition at line 5468 of file pugixml.cpp.

PUGI__FN xml_node::iterator pugi::xml_node::begin ( void  ) const

Definition at line 5453 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::child ( const char_t name) const

Definition at line 5538 of file pugixml.cpp.

PUGI__FN const char_t * pugi::xml_node::child_value ( ) const

Definition at line 5640 of file pugixml.cpp.

PUGI__FN const char_t * pugi::xml_node::child_value ( const char_t name) const

Definition at line 5655 of file pugixml.cpp.

PUGI__FN xml_object_range< xml_node_iterator > pugi::xml_node::children ( ) const

Definition at line 5473 of file pugixml.cpp.

PUGI__FN xml_object_range< xml_named_node_iterator > pugi::xml_node::children ( const char_t name) const

Definition at line 5478 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::empty ( void  ) const

Definition at line 5518 of file pugixml.cpp.

PUGI__FN xml_node::iterator pugi::xml_node::end ( void  ) const

Definition at line 5458 of file pugixml.cpp.

template<typename Predicate >
xml_attribute pugi::xml_node::find_attribute ( Predicate  pred) const
inline

Definition at line 623 of file pugixml.hpp.

template<typename Predicate >
xml_node pugi::xml_node::find_child ( Predicate  pred) const
inline

Definition at line 635 of file pugixml.hpp.

PUGI__FN xml_node pugi::xml_node::find_child_by_attribute ( const char_t name,
const char_t attr_name,
const char_t attr_value 
) const

Definition at line 6198 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::find_child_by_attribute ( const char_t attr_name,
const char_t attr_value 
) const

Definition at line 6213 of file pugixml.cpp.

template<typename Predicate >
xml_node pugi::xml_node::find_node ( Predicate  pred) const
inline

Definition at line 647 of file pugixml.hpp.

PUGI__FN xml_attribute pugi::xml_node::first_attribute ( ) const

Definition at line 5660 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::first_child ( ) const

Definition at line 5670 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::first_element_by_path ( const char_t path,
char_t  delimiter = '/' 
) const

Definition at line 6261 of file pugixml.cpp.

PUGI__FN size_t pugi::xml_node::hash_value ( ) const

Definition at line 6348 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::insert_attribute_after ( const char_t name,
const xml_attribute attr 
)

Definition at line 5734 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::insert_attribute_before ( const char_t name,
const xml_attribute attr 
)

Definition at line 5752 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_child_after ( xml_node_type  type,
const xml_node node 
)

Definition at line 5892 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_child_after ( const char_t name,
const xml_node node 
)

Definition at line 5928 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_child_before ( xml_node_type  type,
const xml_node node 
)

Definition at line 5874 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_child_before ( const char_t name,
const xml_node node 
)

Definition at line 5937 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::insert_copy_after ( const xml_attribute proto,
const xml_attribute attr 
)

Definition at line 5804 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_copy_after ( const xml_node proto,
const xml_node node 
)

Definition at line 5980 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::insert_copy_before ( const xml_attribute proto,
const xml_attribute attr 
)

Definition at line 5822 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_copy_before ( const xml_node proto,
const xml_node node 
)

Definition at line 5998 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_move_after ( const xml_node moved,
const xml_node node 
)

Definition at line 6048 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::insert_move_before ( const xml_node moved,
const xml_node node 
)

Definition at line 6066 of file pugixml.cpp.

PUGI__FN xml_node_struct * pugi::xml_node::internal_object ( ) const

Definition at line 6353 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::last_attribute ( ) const

Definition at line 5665 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::last_child ( ) const

Definition at line 5675 of file pugixml.cpp.

PUGI__FN const char_t * pugi::xml_node::name ( ) const

Definition at line 5523 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::next_sibling ( ) const

Definition at line 5569 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::next_sibling ( const char_t name) const

Definition at line 5559 of file pugixml.cpp.

PUGI__FN ptrdiff_t pugi::xml_node::offset_debug ( ) const

Definition at line 6385 of file pugixml.cpp.

pugi::xml_node::operator unspecified_bool_type ( ) const
PUGI__FN bool pugi::xml_node::operator! ( void  ) const

Definition at line 5448 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::operator!= ( const xml_node r) const

Definition at line 5493 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::operator< ( const xml_node r) const

Definition at line 5498 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::operator<= ( const xml_node r) const

Definition at line 5508 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::operator== ( const xml_node r) const

Definition at line 5488 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::operator> ( const xml_node r) const

Definition at line 5503 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::operator>= ( const xml_node r) const

Definition at line 5513 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::parent ( ) const

Definition at line 5625 of file pugixml.cpp.

PUGI__FN string_t pugi::xml_node::path ( char_t  delimiter = '/') const

Definition at line 6226 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::prepend_attribute ( const char_t name)

Definition at line 5717 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::prepend_child ( xml_node_type  type = node_element)

Definition at line 5857 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::prepend_child ( const char_t name)

Definition at line 5919 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_node::prepend_copy ( const xml_attribute proto)

Definition at line 5787 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::prepend_copy ( const xml_node proto)

Definition at line 5963 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::prepend_move ( const xml_node moved)

Definition at line 6032 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::previous_sibling ( ) const

Definition at line 5617 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::previous_sibling ( const char_t name) const

Definition at line 5574 of file pugixml.cpp.

PUGI__FN void pugi::xml_node::print ( xml_writer writer,
const char_t indent = PUGIXML_TEXT("\t"),
unsigned int  flags = format_default,
xml_encoding  encoding = encoding_auto,
unsigned int  depth = 0 
) const

Definition at line 6358 of file pugixml.cpp.

PUGI__FN void pugi::xml_node::print ( std::basic_ostream< char, std::char_traits< char > > &  os,
const char_t indent = PUGIXML_TEXT("\t"),
unsigned int  flags = format_default,
xml_encoding  encoding = encoding_auto,
unsigned int  depth = 0 
) const

Definition at line 6370 of file pugixml.cpp.

PUGI__FN void pugi::xml_node::print ( std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &  os,
const char_t indent = PUGIXML_TEXT("\t"),
unsigned int  flags = format_default,
unsigned int  depth = 0 
) const

Definition at line 6377 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::remove_attribute ( const xml_attribute a)

Definition at line 6089 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::remove_attribute ( const char_t name)

Definition at line 6084 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::remove_attributes ( )

Definition at line 6103 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::remove_child ( const xml_node n)

Definition at line 6129 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::remove_child ( const char_t name)

Definition at line 6124 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::remove_children ( )

Definition at line 6142 of file pugixml.cpp.

PUGI__FN xml_node pugi::xml_node::root ( ) const

Definition at line 5630 of file pugixml.cpp.

PUGI__FN xpath_node pugi::xml_node::select_node ( const char_t query,
xpath_variable_set variables = PUGIXML_NULL 
) const

Definition at line 12924 of file pugixml.cpp.

PUGI__FN xpath_node pugi::xml_node::select_node ( const xpath_query query) const

Definition at line 12930 of file pugixml.cpp.

PUGI__FN xpath_node_set pugi::xml_node::select_nodes ( const char_t query,
xpath_variable_set variables = PUGIXML_NULL 
) const

Definition at line 12935 of file pugixml.cpp.

PUGI__FN xpath_node_set pugi::xml_node::select_nodes ( const xpath_query query) const

Definition at line 12941 of file pugixml.cpp.

PUGI__FN xpath_node pugi::xml_node::select_single_node ( const char_t query,
xpath_variable_set variables = PUGIXML_NULL 
) const

Definition at line 12946 of file pugixml.cpp.

PUGI__FN xpath_node pugi::xml_node::select_single_node ( const xpath_query query) const

Definition at line 12952 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::set_name ( const char_t rhs)

Definition at line 5680 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::set_value ( const char_t rhs)

Definition at line 5690 of file pugixml.cpp.

PUGI__FN xml_text pugi::xml_node::text ( ) const

Definition at line 5635 of file pugixml.cpp.

PUGI__FN bool pugi::xml_node::traverse ( xml_tree_walker walker)

Definition at line 6301 of file pugixml.cpp.

PUGI__FN xml_node_type pugi::xml_node::type ( ) const

Definition at line 5528 of file pugixml.cpp.

PUGI__FN const char_t * pugi::xml_node::value ( ) const

Definition at line 5533 of file pugixml.cpp.

Friends And Related Function Documentation

Definition at line 484 of file pugixml.hpp.

Definition at line 486 of file pugixml.hpp.

friend class xml_node_iterator
friend

Definition at line 485 of file pugixml.hpp.

Member Data Documentation

xml_node_struct* pugi::xml_node::_root
protected

Definition at line 489 of file pugixml.hpp.


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