Core: add method to XMLReader to access next element of an XML file
If the next element could be read-in successfully true is returned, and false otherwise.
This commit is contained in:
@@ -146,9 +146,19 @@ public:
|
||||
const char* localName() const;
|
||||
/// get the current element level
|
||||
int level() const;
|
||||
|
||||
/// return true if the end of an element is reached, false otherwise
|
||||
bool isEndOfElement() const;
|
||||
|
||||
/// return true if the end of the document is reached, false otherwise
|
||||
bool isEndOfDocument() const;
|
||||
|
||||
/// read until a start element is found (\<name\>) or start-end element (\<name/\>) (with special name if given)
|
||||
void readElement (const char* ElementName=nullptr);
|
||||
|
||||
/// Read in the next element. Return true if it succeeded and false otherwise
|
||||
bool readNextElement();
|
||||
|
||||
/** read until an end element is found
|
||||
*
|
||||
* @param ElementName: optional end element name to look for. If given, then
|
||||
|
||||
Reference in New Issue
Block a user