acl
3.5.3.0
|
#include <xml.hpp>
Public 成员函数 | |
xml (size_t dbuf_nblock=2, size_t dbuf_capacity=100) | |
virtual | ~xml (void) |
virtual xml & | ignore_slash (bool on)=0 |
virtual xml & | xml_decode (bool on)=0 |
virtual xml & | xml_encode (bool on)=0 |
virtual xml & | xml_multi_root (bool on)=0 |
virtual const char * | update (const char *data)=0 |
virtual bool | complete (const char *root_tag)=0 |
virtual void | reset (void)=0 |
virtual const string & | getText (void) |
virtual const std::vector< xml_node * > & | getElementsByTagName (const char *tag) const =0 |
virtual xml_node * | getFirstElementByTag (const char *tag) const =0 |
virtual const std::vector< xml_node * > & | getElementsByTags (const char *tags) const =0 |
virtual xml_node * | getFirstElementByTags (const char *tags) const =0 |
virtual const std::vector< xml_node * > & | getElementsByName (const char *value) const =0 |
virtual const std::vector< xml_node * > & | getElementsByAttr (const char *name, const char *value) const =0 |
virtual xml_node * | getElementById (const char *id) const =0 |
virtual xml_node & | create_node (const char *tag, const char *txt=NULL)=0 |
virtual xml_node & | create_node (const char *tag, istream &in, size_t off=0, size_t len=0)=0 |
xml_node & | create_node (const char *tag, long long int number) |
virtual xml_node & | get_root (void)=0 |
virtual xml_node * | first_node (void)=0 |
virtual xml_node * | next_node (void)=0 |
virtual void | build_xml (string &out) const |
virtual const char * | to_string (size_t *len=NULL) const =0 |
virtual size_t | space (void) const =0 |
virtual void | space_clear (void)=0 |
virtual size_t | node_count (void) const =0 |
virtual size_t | attr_count (void) const =0 |
virtual int | push_pop (const char *in, size_t len, string *out, size_t max=0) |
virtual int | pop_end (string *out, size_t max=0) |
virtual void | clear (void) |
Public 成员函数 继承自 acl::pipe_stream | |
pipe_stream () | |
virtual | ~pipe_stream () |
Public 成员函数 继承自 acl::dbuf_obj | |
dbuf_obj (dbuf_guard *guard=NULL) | |
virtual | ~dbuf_obj () |
int | pos () const |
dbuf_guard * | get_guard () const |
Protected 属性 | |
dbuf_guard | dbuf_ |
std::vector< xml_node * > | elements_ |
string * | buf_ |
ACL_TOKEN * | m_pTokenTree |
额外继承的成员函数 | |
Protected 成员函数 继承自 acl::acl::noncopyable | |
noncopyable () | |
~noncopyable () | |
acl::xml::xml | ( | size_t | dbuf_nblock = 2 , |
size_t | dbuf_capacity = 100 |
||
) |
dbuf_nblock | {size_t} 内部所用 dbuf_guard 的初始化参数 |
dbuf_capacity | {size_t} 内部所用 dbuf_guard 的初始化参数 |
|
virtual |
|
pure virtual |
|
inlinevirtual |
|
virtual |
重载 acl::pipe_stream .
|
pure virtual |
|
pure virtual |
xml_node& acl::xml::create_node | ( | const char * | tag, |
long long int | number | ||
) |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
从 xml 对象中获得所有的与给定多级标签名相同的 xml 节点的集合
tags | {const char*} 多级标签名,由 '/' 分隔各级标签名,如针对 xml 数据: <root> <first> <second> <third name="test1"> text1 </third> </second> </first> ... <root> <first> <second> <third name="test2"> text2 </third> </second> </first> ... <root> <first> <second> <third name="test3"> text3 </third> </second> </first> ... 可以通过多级标签名:root/first/second/third 一次性查出所有符合条件的节点 |
|
pure virtual |
|
pure virtual |
从 xml 对象中获得指定多级标签名的第一个 xml 节点
tags | {const char*} 多级标签名,由 '/' 分隔各级标签名,如针对 xml 数据: <root> <first> <second> <third name="test1"> text1 </third> </second> </first> ... <root> <first> <second> <third name="test2"> text2 </third> </second> </first> ... <root> <first> <second> <third name="test3"> text3 </third> </second> </first> ... 可以通过多级标签名:root/first/second/third 一次性查出所有符合条件的节点 |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
实现了 acl::pipe_stream.
|
virtual |
实现了 acl::pipe_stream.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
protected |