08/11/2012, 05:43
|
| | Fecha de Ingreso: julio-2010
Mensajes: 216
Antigüedad: 14 años, 3 meses Puntos: 0 | |
Respuesta: Paranormal activity - const char * - La función intermedia es:
Se usa para ir avanzando en la lectura de un XML, asique no afecta para nada al const char * void ReaderBody::nextEventType(void)
{
if (not scopingActivated_) {
environment_.clear();
}
bool done = false;
do {
done = true;
switch (pullParser_->nextEventType()) {
case PullParser::START_DOCUMENT:
eventType_ = Reader::START_DOCUMENT;
break;
case PullParser::START_TAG:
eventType_ = Reader::START_TAG;
environment_.push_back(pullParser_->getAttributeValues());
break;
case PullParser::END_TAG:
eventType_ = Reader::END_TAG;
if (scopingActivated_) {
environment_.pop_back();
if (environment_.empty()) {
scopingActivated_ = false;
}
}
break;
case PullParser::END_DOCUMENT:
eventType_ = Reader::END_DOCUMENT;
break;
default:
done = false;
break;
}
} while (not done);
} |