| 31 | SuccessParser() : _oneShoot(false),_order(0), XMLParser(_XML.data(),_XML.size()) {} |
| 32 | |
| 33 | void parse(bool oneShoot) { |
| 34 | _oneShoot = oneShoot; |
| 35 | _order = 0; |
| 36 | XMLParser::reset(); |
| 37 | if (!_oneShoot) { |
| 38 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 39 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 40 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 41 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 42 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 43 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 44 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 45 | CHECK(XMLParser::parse(_ex) && !_ex); |
| 46 | } |
| 47 | CHECK(!XMLParser::parse(_ex)); |
| 48 | CHECK(!_ex); |
| 49 | } |
| 50 | |
| 51 | bool onStartXMLDocument() { |
| 52 | CHECK(_order++ == 0); |