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:
parent
1bcdd9fabe
commit
df818f4d26
|
@ -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; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue