Added helper method to check if an XmlParent has any children.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4765 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-12-15 15:55:59 +00:00
parent 1bcdd9fabe
commit df818f4d26
1 changed files with 7 additions and 0 deletions

View File

@ -576,6 +576,13 @@ public:
*/
virtual void clearChildren()
{ }
/**
* Check if at least one child element exists
* @return True if this parent has at least one child
*/
inline bool hasChildren() const
{ return getChildren().skipNull() != 0; }
};
/**