| CBlueUI
     C++ 跨平台跨框架的数据可视化工具 | 
| Public 成员函数 | |
| XMLItemW () | |
| ~XMLItemW () | |
| BeStringPairW & | LabelPair () | 
| 节点名称和节点文本内容 | |
| void | ReleaseChild () | 
| 释放所有孩子节点 | |
| size_t | GetChildCounts () const | 
| 子节点总数 | |
| XMLItemW * | GetChildObject (int index) const | 
| 获得索引(index)位置的子节点 | |
| unsigned int | AttrbuteCount () const | 
| 属性的总数 | |
| BeStringPairW & | AttrbuteTextPair (unsigned int i) | 
| 获得索引(i)位置的属性键值对 | |
| void | AppendAttrbute (BeStringW key, BeStringW value) | 
| 添加属性键值对 | |
| XMLItemW * | FirstChild () const | 
| 第一个孩子节点 | |
| XMLItemW * | LastChild () const | 
| 最后一个孩子节点 | |
| XMLItemW * | PrevSibling () const | 
| 上一个兄弟节点 | |
| XMLItemW * | NextSibling () const | 
| 下一个兄弟节点 | |
| XMLItemW * | Parent () const | 
| 父节点 | |
| void | RemoveAllAttrbute () | 
| 删除所有属性 | |
| void | RemoveAttrbute (const WCHAR *name) | 
| 删除指定属性 | |
| BOOL | SetAttribute (const WCHAR *name, const BeStringW &str_value) | 
| 设置属性值 | |
| void | BreakAway (BOOL isReleaseAllChild) | 
| 脱离dom结构 | |
| BOOL | FindAttribute (const WCHAR *name, BeStringW &outstr) | 
| 查找属性 | |
| const WCHAR * | FindAttributeChar (const WCHAR *name) | 
| 查找属性 | |
| long | FindAttributeInt (const WCHAR *name, long default_value) | 
| 查找属性整数值 | |
| double | FindAttributeFloat (const WCHAR *name, double default_value) | 
| 查找属性浮点数 | |
| XMLItemW * | FindChildByName (const WCHAR *name, BOOL createWhenNoFind=FALSE) | 
| 在后续兄弟节点中,查找指定名称的节点 | |
| XMLItemW * | NextSiblingElement (const WCHAR *name) | 
| 查询节点 | |
| XMLItemW * | FindObjectByKeyPath (const WCHAR *keyPath, BOOL createWhenNoFind=FALSE) | 
| 一次读取层级节点信息。通过不断匹配keyPath的方式向深层次节点查找,直到匹配。例如 123  | |
| XMLItemW * | FindObjectByAttributePath (const WCHAR *attrName, const WCHAR *attrPath) const | 
| 根据执行属性名的值,为一次读取层级节点信息。通过不断匹配keyPath的方式向深层次节点查找,直到匹配 | |
| void | StandardizationItem (void(*callback_free)(XMLItemW *node)=NULL) | 
| 标准化树(将单一子节点,设置为节点的属性值) | |
| XMLItemW * | AppendChild (const WCHAR *key=NULL, const WCHAR *value=NULL, int type=-1, BOOL addtail=TRUE) | 
| 添加子节点。 | |
| void | Print (FILE *fp, BOOL bFormate, int depth) | 
| 将此节点输出到文件中 | |
| void | Clone (XMLItemW *otherNode) | 
| 将otherNode克隆到this节点。用于存储 | |
| 静态 Public 成员函数 | |
| static XMLItemW * | NextItem (XMLItemW *item) | 
| 不用递归的遍历时调用 | |
| Public 属性 | |
| XMLItemW * | parent | 
| XMLItemW * | first_child | 
| XMLItemW * | last_child | 
| XMLItemW * | prev_sibling | 
| XMLItemW * | next_sibling | 
| BeStringPairW | label | 
| std::vector< BeStringPairW > | attribute_list | 
| int | type_ | 
| Protected 成员函数 | |
| XMLItemW * | AllocXmlNode (int type) | 
| BUI::XMLItemW::XMLItemW | ( | ) | 
| BUI::XMLItemW::~XMLItemW | ( | ) | 
| 
 | protected | 
| XMLItemW * BUI::XMLItemW::AppendChild | ( | const WCHAR * | key = NULL, | 
| const WCHAR * | value = NULL, | ||
| int | type = -1, | ||
| BOOL | addtail = TRUE | ||
| ) | 
添加子节点。
| key | : 节点名称 | 
| value | : 节点值 | 
| type | : 节点类型 | 
| addtail | : 是否加入到末尾 | 
| unsigned int BUI::XMLItemW::AttrbuteCount | ( | ) | const | 
属性的总数
| BeStringPairW & BUI::XMLItemW::AttrbuteTextPair | ( | unsigned int | i | ) | 
获得索引(i)位置的属性键值对
| void BUI::XMLItemW::BreakAway | ( | BOOL | isReleaseAllChild | ) | 
脱离dom结构
| isReleaseAllChild | 当为TRUE时,并且释放所有孩子节点占用内存,初始化为NULL。为FALSE时 仅脱离dom结构,并保留孩子节点 | 
| void BUI::XMLItemW::Clone | ( | XMLItemW * | otherNode | ) | 
将otherNode克隆到this节点。用于存储
| otherNode | 被克隆对象 | 
查找属性
| name | : 属性名称 | 
| outstr | :若存在,则输出属性值 | 
查找属性
| name | : 属性名称 | 
| double BUI::XMLItemW::FindAttributeFloat | ( | const WCHAR * | name, | 
| double | default_value | ||
| ) | 
查找属性浮点数
| name | : 属性名称 | 
| default_value | : 默认值 | 
| long BUI::XMLItemW::FindAttributeInt | ( | const WCHAR * | name, | 
| long | default_value | ||
| ) | 
查找属性整数值
| name | : 属性名称 | 
| default_value | : 默认值 | 
在后续兄弟节点中,查找指定名称的节点
| name | : 节点名称 | 
| XMLItemW * BUI::XMLItemW::FindObjectByAttributePath | ( | const WCHAR * | attrName, | 
| const WCHAR * | attrPath | ||
| ) | const | 
根据执行属性名的值,为一次读取层级节点信息。通过不断匹配keyPath的方式向深层次节点查找,直到匹配
| attrName | |
| attrPath | "a.b.c"(此时树状结构123 )  | 
 XMLItemA* 返回匹配的节点 | XMLItemW * BUI::XMLItemW::FindObjectByKeyPath | ( | const WCHAR * | keyPath, | 
| BOOL | createWhenNoFind = FALSE | ||
| ) | 
一次读取层级节点信息。通过不断匹配keyPath的方式向深层次节点查找,直到匹配。例如123 
| keyPath | "a.b.c"(此时树状结构 123)  | 
 XMLItemA* 返回匹配的节点 | XMLItemW * BUI::XMLItemW::FirstChild | ( | ) | const | 
第一个孩子节点
| size_t BUI::XMLItemW::GetChildCounts | ( | ) | const | 
子节点总数
| XMLItemW * BUI::XMLItemW::GetChildObject | ( | int | index | ) | const | 
获得索引(index)位置的子节点
| BeStringPairW & BUI::XMLItemW::LabelPair | ( | ) | 
节点名称和节点文本内容
| XMLItemW * BUI::XMLItemW::LastChild | ( | ) | const | 
最后一个孩子节点
| XMLItemW * BUI::XMLItemW::NextSibling | ( | ) | const | 
下一个兄弟节点
查询节点
| name | 节点名称 | 
| createWhenNoFind | 当为查询到时创建节点 | 
| XMLItemW * BUI::XMLItemW::Parent | ( | ) | const | 
父节点
| XMLItemW * BUI::XMLItemW::PrevSibling | ( | ) | const | 
上一个兄弟节点
| void BUI::XMLItemW::Print | ( | FILE * | fp, | 
| BOOL | bFormate, | ||
| int | depth | ||
| ) | 
将此节点输出到文件中
| fp | :文件句柄 | 
| bFormate | : 是否格式化 | 
| depth | : 节点深度,用于计算前缀缩进 | 
| void BUI::XMLItemW::ReleaseChild | ( | ) | 
释放所有孩子节点
| void BUI::XMLItemW::RemoveAllAttrbute | ( | ) | 
删除所有属性
| void BUI::XMLItemW::RemoveAttrbute | ( | const WCHAR * | name | ) | 
删除指定属性
| void BUI::XMLItemW::StandardizationItem | ( | void(*)(XMLItemW *node) | callback_free = NULL | ) | 
标准化树(将单一子节点,设置为节点的属性值)
| callback_free | 释放节点回调函数 | 
| std::vector<BeStringPairW> BUI::XMLItemW::attribute_list | 
| XMLItemW* BUI::XMLItemW::first_child | 
| BeStringPairW BUI::XMLItemW::label | 
| XMLItemW* BUI::XMLItemW::last_child | 
| XMLItemW* BUI::XMLItemW::next_sibling | 
| XMLItemW* BUI::XMLItemW::parent | 
| XMLItemW* BUI::XMLItemW::prev_sibling | 
| int BUI::XMLItemW::type_ |