PLaSK library
|
Util class that allow to check of duplication of tags. More...
#include <plask/utils/xml/reader.hpp>
Public Member Functions | |
void | operator() (const std::string &scope, std::string name) |
Throw exception if tag with name name has been already seen and so is not allowed again. | |
void | operator() (const XMLReader &scope, std::string name) |
Throw exception if tag with name name has been already seen and so is not allowed again. | |
void | operator() (const XMLReader &reader) |
Util class that allow to check of duplication of tags.
Example usage: XMLReader::CheckTagDuplication dub_check; dub_checke(reader); reader.require_next(); dub_checke(reader); //throw if tag has the same name as previous one
Definition at line 278 of file reader.hpp.
|
inline |
Throw exception if tag with name name
has been already seen and so is not allowed again.
scope | scope, where tag duplication is not allowed (used in formatting of error message) |
name | name of tag |
Definition at line 289 of file reader.hpp.
Definition at line 304 of file reader.hpp.
|
inline |
Throw exception if tag with name name
has been already seen and so is not allowed again.
scope | scope, where tag duplication is not allowed (used in formatting of error message) |
name | name of tag |
Definition at line 299 of file reader.hpp.