本文整理汇总了C++中TIXML_STRING函数的典型用法代码示例。如果您正苦于以下问题:C++ TIXML_STRING函数的具体用法?C++ TIXML_STRING怎么用?C++ TIXML_STRING使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TIXML_STRING函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: assert
void TiXmlAttributeSet::Add(TiXmlAttribute *addMe)
{
assert(!Find(TIXML_STRING(addMe->Name()))); // Shouldn't be multiply adding to the set.
addMe->next = &sentinel;
addMe->prev = sentinel.prev;
sentinel.prev->next = addMe;
sentinel.prev = addMe;
}
示例2: PreviousSibling
TiXmlNode* TiXmlNode::PreviousSibling( const TCHAR * _value ) const
{
TiXmlNode* node;
for ( node = prev; node; node = node->prev )
{
if ( node->SValue() == TIXML_STRING (_value))
return node;
}
return 0;
}
示例3: NextSibling
TiXmlNode* TiXmlNode::NextSibling( const TCHAR * _value ) const
{
TiXmlNode* node;
for ( node = next; node; node = node->next )
{
if ( node->SValue() == TIXML_STRING (_value))
return node;
}
return 0;
}
示例4: LastChild
TiXmlNode* TiXmlNode::LastChild( const TCHAR * _value ) const
{
TiXmlNode* node;
for ( node = lastChild; node; node = node->prev )
{
if ( node->SValue() == TIXML_STRING (_value))
return node;
}
return 0;
}
示例5: FirstChild
TiXmlNode* TiXmlNode::FirstChild( const TCHAR * _value ) const
{
TiXmlNode* node;
for ( node = firstChild; node; node = node->next )
{
if ( node->SValue() == TIXML_STRING( _value ))
return node;
}
return 0;
}
示例6: assert
void TTiXmlAttributeSet::Add( TTiXmlAttribute* addMe )
{
#ifdef TIXML_USE_STL
assert( !Find( TIXML_STRING( addMe->Name() ) ) ); // Shouldn't be multiply adding to the set.
#else
assert( !Find( addMe->Name() ) ); // Shouldn't be multiply adding to the set.
#endif
addMe->next = &sentinel;
addMe->prev = sentinel.prev;
sentinel.prev->next = addMe;
sentinel.prev = addMe;
}