OpenCPN Partial API docs
Loading...
Searching...
No Matches
pugi::xml_node Class Reference
Inheritance diagram for pugi::xml_node:
pugi::xml_document NavObjectCollection1 OCPNConfigCatalog NavObjectChanges

Public Types

typedef xml_node_iterator iterator
 
typedef xml_attribute_iterator attribute_iterator
 

Public Member Functions

 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_t * name () const
 
const char_t * value () 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_t * child_value () const
 
const char_t * child_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_child (const xml_node &n)
 
bool remove_child (const char_t *name)
 
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=0) const
 
xpath_node select_node (const xpath_query &query) const
 
xpath_node_set select_nodes (const char_t *query, xpath_variable_set *variables=0) const
 
xpath_node_set select_nodes (const xpath_query &query) const
 
xpath_node select_single_node (const char_t *query, xpath_variable_set *variables=0) const
 
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_iteratorchildren () const
 
xml_object_range< xml_named_node_iteratorchildren (const char_t *name) const
 
xml_object_range< xml_attribute_iteratorattributes () 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 461 of file pugixml.hpp.

Member Typedef Documentation

◆ attribute_iterator

◆ iterator

Definition at line 720 of file pugixml.hpp.

◆ unspecified_bool_type

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

Definition at line 469 of file pugixml.hpp.

Constructor & Destructor Documentation

◆ xml_node() [1/2]

PUGI__FN pugi::xml_node::xml_node ( )

Definition at line 5200 of file pugixml.cpp.

◆ xml_node() [2/2]

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

Definition at line 5202 of file pugixml.cpp.

Member Function Documentation

◆ append_attribute()

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

Definition at line 5436 of file pugixml.cpp.

◆ append_buffer()

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 5853 of file pugixml.cpp.

◆ append_child() [1/2]

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

Definition at line 5644 of file pugixml.cpp.

◆ append_child() [2/2]

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

Definition at line 5576 of file pugixml.cpp.

◆ append_copy() [1/2]

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

Definition at line 5506 of file pugixml.cpp.

◆ append_copy() [2/2]

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

Definition at line 5678 of file pugixml.cpp.

◆ append_move()

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

Definition at line 5746 of file pugixml.cpp.

◆ attribute() [1/2]

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

Definition at line 5289 of file pugixml.cpp.

◆ attribute() [2/2]

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

Definition at line 5322 of file pugixml.cpp.

◆ attributes()

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

Definition at line 5237 of file pugixml.cpp.

◆ attributes_begin()

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

Definition at line 5218 of file pugixml.cpp.

◆ attributes_end()

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

Definition at line 5222 of file pugixml.cpp.

◆ begin()

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

Definition at line 5212 of file pugixml.cpp.

◆ child()

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

Definition at line 5280 of file pugixml.cpp.

◆ child_value() [1/2]

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

Definition at line 5376 of file pugixml.cpp.

◆ child_value() [2/2]

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

Definition at line 5389 of file pugixml.cpp.

◆ children() [1/2]

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

Definition at line 5226 of file pugixml.cpp.

◆ children() [2/2]

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

Definition at line 5230 of file pugixml.cpp.

◆ empty()

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

Definition at line 5266 of file pugixml.cpp.

◆ end()

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

Definition at line 5216 of file pugixml.cpp.

◆ find_attribute()

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

Definition at line 616 of file pugixml.hpp.

◆ find_child()

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

Definition at line 629 of file pugixml.hpp.

◆ find_child_by_attribute() [1/2]

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 5909 of file pugixml.cpp.

◆ find_child_by_attribute() [2/2]

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 5892 of file pugixml.cpp.

◆ find_node()

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

Definition at line 641 of file pugixml.hpp.

◆ first_attribute()

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

Definition at line 5393 of file pugixml.cpp.

◆ first_child()

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

Definition at line 5403 of file pugixml.cpp.

◆ first_element_by_path()

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

Definition at line 5954 of file pugixml.cpp.

◆ hash_value()

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

Definition at line 6041 of file pugixml.cpp.

◆ insert_attribute_after()

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

Definition at line 5468 of file pugixml.cpp.

◆ insert_attribute_before()

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

Definition at line 5487 of file pugixml.cpp.

◆ insert_child_after() [1/2]

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

Definition at line 5660 of file pugixml.cpp.

◆ insert_child_after() [2/2]

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

Definition at line 5626 of file pugixml.cpp.

◆ insert_child_before() [1/2]

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

Definition at line 5669 of file pugixml.cpp.

◆ insert_child_before() [2/2]

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

Definition at line 5608 of file pugixml.cpp.

◆ insert_copy_after() [1/2]

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

Definition at line 5538 of file pugixml.cpp.

◆ insert_copy_after() [2/2]

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

Definition at line 5710 of file pugixml.cpp.

◆ insert_copy_before() [1/2]

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

Definition at line 5557 of file pugixml.cpp.

◆ insert_copy_before() [2/2]

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

Definition at line 5728 of file pugixml.cpp.

◆ insert_move_after()

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

Definition at line 5780 of file pugixml.cpp.

◆ insert_move_before()

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

Definition at line 5800 of file pugixml.cpp.

◆ internal_object()

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

Definition at line 6046 of file pugixml.cpp.

◆ last_attribute()

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

Definition at line 5397 of file pugixml.cpp.

◆ last_child()

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

Definition at line 5407 of file pugixml.cpp.

◆ name()

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

Definition at line 5268 of file pugixml.cpp.

◆ next_sibling() [1/2]

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

Definition at line 5308 of file pugixml.cpp.

◆ next_sibling() [2/2]

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

Definition at line 5299 of file pugixml.cpp.

◆ offset_debug()

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

Definition at line 6079 of file pugixml.cpp.

◆ operator unspecified_bool_type()

PUGI__FN pugi::xml_node::operator xml_node::unspecified_bool_type ( ) const

Definition at line 5206 of file pugixml.cpp.

◆ operator!()

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

Definition at line 5210 of file pugixml.cpp.

◆ operator!=()

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

Definition at line 5246 of file pugixml.cpp.

◆ operator<()

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

Definition at line 5250 of file pugixml.cpp.

◆ operator<=()

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

Definition at line 5258 of file pugixml.cpp.

◆ operator==()

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

Definition at line 5242 of file pugixml.cpp.

◆ operator>()

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

Definition at line 5254 of file pugixml.cpp.

◆ operator>=()

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

Definition at line 5262 of file pugixml.cpp.

◆ parent()

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

Definition at line 5366 of file pugixml.cpp.

◆ path()

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

Definition at line 5924 of file pugixml.cpp.

◆ prepend_attribute()

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

Definition at line 5452 of file pugixml.cpp.

◆ prepend_child() [1/2]

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

Definition at line 5652 of file pugixml.cpp.

◆ prepend_child() [2/2]

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

Definition at line 5592 of file pugixml.cpp.

◆ prepend_copy() [1/2]

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

Definition at line 5522 of file pugixml.cpp.

◆ prepend_copy() [2/2]

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

Definition at line 5694 of file pugixml.cpp.

◆ prepend_move()

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

Definition at line 5763 of file pugixml.cpp.

◆ previous_sibling() [1/2]

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

Definition at line 5357 of file pugixml.cpp.

◆ previous_sibling() [2/2]

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

Definition at line 5312 of file pugixml.cpp.

◆ print() [1/3]

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 6061 of file pugixml.cpp.

◆ print() [2/3]

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 6070 of file pugixml.cpp.

◆ print() [3/3]

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 6048 of file pugixml.cpp.

◆ remove_attribute() [1/2]

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

Definition at line 5820 of file pugixml.cpp.

◆ remove_attribute() [2/2]

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

Definition at line 5824 of file pugixml.cpp.

◆ remove_child() [1/2]

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

Definition at line 5837 of file pugixml.cpp.

◆ remove_child() [2/2]

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

Definition at line 5841 of file pugixml.cpp.

◆ root()

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

Definition at line 5370 of file pugixml.cpp.

◆ select_node() [1/2]

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

Definition at line 11998 of file pugixml.cpp.

◆ select_node() [2/2]

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

Definition at line 12004 of file pugixml.cpp.

◆ select_nodes() [1/2]

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

Definition at line 12008 of file pugixml.cpp.

◆ select_nodes() [2/2]

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

Definition at line 12014 of file pugixml.cpp.

◆ select_single_node() [1/2]

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

Definition at line 12018 of file pugixml.cpp.

◆ select_single_node() [2/2]

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

Definition at line 12025 of file pugixml.cpp.

◆ set_name()

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

Definition at line 5413 of file pugixml.cpp.

◆ set_value()

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

Definition at line 5424 of file pugixml.cpp.

◆ text()

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

Definition at line 5374 of file pugixml.cpp.

◆ traverse()

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

Definition at line 6003 of file pugixml.cpp.

◆ type()

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

Definition at line 5272 of file pugixml.cpp.

◆ value()

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

Definition at line 5276 of file pugixml.cpp.

Friends And Related Symbol Documentation

◆ xml_attribute_iterator

friend class xml_attribute_iterator
friend

Definition at line 462 of file pugixml.hpp.

◆ xml_named_node_iterator

friend class xml_named_node_iterator
friend

Definition at line 464 of file pugixml.hpp.

◆ xml_node_iterator

friend class xml_node_iterator
friend

Definition at line 463 of file pugixml.hpp.

Member Data Documentation

◆ _root

xml_node_struct* pugi::xml_node::_root
protected

Definition at line 467 of file pugixml.hpp.


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