#include "Fireworks/Core/interface/SimpleSAXParser.h"
Go to the source code of this file.
Functions | |
void | debug_state_machine (enum SimpleSAXParser::PARSER_STATES state) |
bool | fgettoken (std::istream &in, char **buffer, size_t *maxSize, const char *separators, int *firstChar) |
void debug_state_machine | ( | enum SimpleSAXParser::PARSER_STATES | state | ) |
Definition at line 18 of file SimpleSAXParser.cc.
References DMR_cfg::cerr.
Referenced by SimpleSAXParser::parse().
bool fgettoken | ( | std::istream & | in, |
char ** | buffer, | ||
size_t * | maxSize, | ||
const char * | separators, | ||
int * | firstChar | ||
) |
Helper function which gets a token delimited by separator from the file and write it, 0 terminated in the buffer found in buffer.
Notice that if the token is larger than maxSize, the buffer is reallocated and maxSize is updated to the new size.
The trailing separator after a token is not put in the token and is left in the buffer. If nextChar is not 0, the delimiter is put there.
in the input stream to be parsed.
buffer a pointer to the buffer where to put the tokens. The buffer will be redimensioned accordingly, if the token is larger of the buffer.
maxSize, a pointer to the size of the buffer. Notice that in case the buffer is reallocated to have more space, maxSize is updated with the new size.
firstChar a pointer with the first character in the buffer, notice that the first charater in the stream must be obtained separately!!!
Definition at line 224 of file SimpleSAXParser.cc.
References edmScanValgrind::buffer, HltBtagPostValidation_cff::c, mps_fire::i, recoMuon::in, reco_skim_cfg_mod::maxSize, and realloc().
Referenced by SimpleSAXParser::getToken().