Lines Matching refs:Event
40 enum class Event {
61 static bool isGoodEvent(Event event);
67 * Returns the current event that is being processed.
69 Event getEvent() const;
77 Event next();
88 * Returns the character data for a Text event.
155 Event event;
194 inline ::std::ostream& operator<<(::std::ostream& out, XmlPullParser::Event event) {
195 switch (event) {
196 case XmlPullParser::Event::kBadDocument: return out << "BadDocument";
197 case XmlPullParser::Event::kStartDocument: return out << "StartDocument";
198 case XmlPullParser::Event::kEndDocument: return out << "EndDocument";
199 case XmlPullParser::Event::kStartNamespace: return out << "StartNamespace";
200 case XmlPullParser::Event::kEndNamespace: return out << "EndNamespace";
201 case XmlPullParser::Event::kStartElement: return out << "StartElement";
202 case XmlPullParser::Event::kEndElement: return out << "EndElement";
203 case XmlPullParser::Event::kText: return out << "Text";
204 case XmlPullParser::Event::kComment: return out << "Comment";
210 Event event;
213 while (isGoodEvent(event = parser->next()) && parser->getDepth() > startDepth + 1) {}
216 while ((event != Event::kEndElement || parser->getDepth() > startDepth) && isGoodEvent(event)) {
217 switch (event) {
218 case Event::kText:
219 case Event::kComment:
220 case Event::kStartElement:
225 event = parser->next();
234 case Event::kEndDocument:
236 case Event::kBadDocument:
238 case Event::kStartElement:
241 case Event::kEndElement:
251 inline bool XmlPullParser::isGoodEvent(XmlPullParser::Event event) {
252 return event != Event::kBadDocument && event != Event::kEndDocument;