#include <xmlstorage.h>
Public Member Functions | |
const_XMLPos (const XMLNode *root) | |
const_XMLPos (const const_XMLPos &other) | |
const XMLNode & | cur () const |
access to current node | |
operator const XMLNode * () const | |
C++ access to current node. | |
const XMLNode * | operator-> () const |
const XMLNode & | operator * () const |
XS_String | get (const XS_String &attr_name) const |
attribute access | |
template<typename T> | |
XS_String | get (const T &attr_name) const |
C++ attribute access. | |
bool | back () |
go back to previous position | |
bool | go_down () |
go down to first child | |
bool | go_down (const XS_String &name, int n=0) |
search for child and go down | |
bool | go (const char *path) |
move XPath like to position in XML tree | |
const XS_String & | str () const |
Protected Member Functions | |
void | go_to (const XMLNode *child) |
go to specified node | |
Protected Attributes | |
const XMLNode * | _root |
const XMLNode * | _cur |
std::stack< const XMLNode * > | _stack |
Definition at line 1478 of file xmlstorage.h.
XMLStorage::const_XMLPos::const_XMLPos | ( | const XMLNode * | root | ) | [inline] |
XMLStorage::const_XMLPos::const_XMLPos | ( | const const_XMLPos & | other | ) | [inline] |
const XMLNode& XMLStorage::const_XMLPos::cur | ( | ) | const [inline] |
access to current node
Definition at line 1493 of file xmlstorage.h.
01494 { 01495 return *_cur; 01496 }
XMLStorage::const_XMLPos::operator const XMLNode * | ( | ) | const [inline] |
const XMLNode* XMLStorage::const_XMLPos::operator-> | ( | ) | const [inline] |
const XMLNode& XMLStorage::const_XMLPos::operator * | ( | ) | const [inline] |
attribute access
Definition at line 1506 of file xmlstorage.h.
Referenced by XMLStorage::read_option().
01507 { 01508 return _cur->get(attr_name); 01509 }
XS_String XMLStorage::const_XMLPos::get | ( | const T & | attr_name | ) | const [inline] |
C++ attribute access.
Definition at line 1512 of file xmlstorage.h.
01512 {return _cur->get(attr_name);}
bool XMLStorage::const_XMLPos::back | ( | ) | [inline] |
bool XMLStorage::const_XMLPos::go_down | ( | ) | [inline] |
go down to first child
Definition at line 1526 of file xmlstorage.h.
01527 { 01528 const XMLNode* node = _cur->get_first_child(); 01529 01530 if (node) { 01531 go_to(node); 01532 return true; 01533 } else 01534 return false; 01535 }
bool XMLStorage::const_XMLPos::go_down | ( | const XS_String & | name, | |
int | n = 0 | |||
) | [inline] |
search for child and go down
Definition at line 1538 of file xmlstorage.h.
01539 { 01540 XMLNode* node = _cur->find(name, n); 01541 01542 if (node) { 01543 go_to(node); 01544 return true; 01545 } else 01546 return false; 01547 }
bool XMLStorage::const_XMLPos::go | ( | const char * | path | ) |
move XPath like to position in XML tree
const XS_String& XMLStorage::const_XMLPos::str | ( | ) | const [inline] |
void XMLStorage::const_XMLPos::go_to | ( | const XMLNode * | child | ) | [inline, protected] |
const XMLNode* XMLStorage::const_XMLPos::_root [protected] |
Definition at line 1569 of file xmlstorage.h.
const XMLNode* XMLStorage::const_XMLPos::_cur [protected] |
Definition at line 1570 of file xmlstorage.h.
std::stack<const XMLNode*> XMLStorage::const_XMLPos::_stack [protected] |
Definition at line 1571 of file xmlstorage.h.
IBrowser Source Code Documentation
generated on 18.09.2008 by |