CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
Public 成员函数 | |
XMLItemW () | |
~XMLItemW () | |
BeStringPairW & | LabelPair () |
void | BreakAway (BOOL isReleaseAllChild) |
脱离dom结构 | |
void | ReleaseChild () |
size_t | GetChildCounts () const |
XMLItemW * | GetChildObject (int index) const |
BeStringPairW & | AttrbuteTextPair (unsigned int i) |
unsigned int | AttrbuteCount () const |
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) |
设置属性值 | |
BOOL | FindAttribute (const WCHAR *name, BeStringW &outstr) |
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 * | 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 * | firstChild |
XMLItemW * | lastChild |
XMLItemW * | prevSibling |
XMLItemW * | nextSibling |
BeStringPairW | label |
std::vector< BeStringPairW > | attributeList |
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 |
||
) |
unsigned int BUI::XMLItemW::AttrbuteCount | ( | ) | const |
BeStringPairW & BUI::XMLItemW::AttrbuteTextPair | ( | unsigned int | i | ) |
void BUI::XMLItemW::BreakAway | ( | BOOL | isReleaseAllChild | ) |
脱离dom结构
isReleaseAllChild | 当为TRUE时,并且释放所有孩子节点占用内存,初始化为NULL。为FALSE时 仅脱离dom结构,并保留孩子节点 |
void BUI::XMLItemW::Clone | ( | XMLItemW * | otherNode | ) |
将otherNode克隆到this节点。用于存储
otherNode | 被克隆对象 |
double BUI::XMLItemW::FindAttributeFloat | ( | const WCHAR * | name, |
double | default_value | ||
) |
long BUI::XMLItemW::FindAttributeInt | ( | const WCHAR * | name, |
long | default_value | ||
) |
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 |
BeStringPairW & BUI::XMLItemW::LabelPair | ( | ) |
XMLItemW * BUI::XMLItemW::LastChild | ( | ) | const |
XMLItemW * BUI::XMLItemW::NextSibling | ( | ) | const |
XMLItemW * BUI::XMLItemW::Parent | ( | ) | const |
XMLItemW * BUI::XMLItemW::PrevSibling | ( | ) | const |
void BUI::XMLItemW::Print | ( | FILE * | fp, |
BOOL | bFormate, | ||
int | 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::attributeList |
XMLItemW* BUI::XMLItemW::firstChild |
BeStringPairW BUI::XMLItemW::label |
XMLItemW* BUI::XMLItemW::lastChild |
XMLItemW* BUI::XMLItemW::nextSibling |
XMLItemW* BUI::XMLItemW::parent |
XMLItemW* BUI::XMLItemW::prevSibling |
int BUI::XMLItemW::type_ |