30 if(!
p_run)
return false;
67 if(!
isMatch(
"///")){
return false;}
virtual void preLoadFile()
Initialisation to be done just before loading a file.
virtual ~ConfigParser()
Destructor of ConfigParser.
bool parseDocString()
Parse a doc string.
void initialisationConfigParser()
Initialisation function of the class ConfigParser.
virtual void postLoadFile()
Initialisation to be done just after loading a file.
virtual bool parseFile()
Parse the input file.
ConfigParser()
Default constructor of ConfigParser.
const std::string & getDocString() const
Get the last doc string.
std::string p_lastDocString
Last documentation string.
void setSeparator(const PString &separator)
Initialise la liste des caractères séparateurs.
PString getUntilKeyWithoutPatern(const PString &patern)
Renvoie la chaine de caractère du caractère courant jusqu'à patern exclu.
void setWhiteSpace(const PString &whiteSpace)
Initialise la liste des caractères blancs.
void skipWhiteSpace()
Skip the white space if there is at the current caracter position.
bool isMatch(const PString &token)
Check if the given token matches the current read file.
void unexpectedToken()
Print unexpected token error.
void pointAtRow()
Point the problem.
PFileParser * p_parser
Parser helper for the config file.
bool p_run
Run the parsing if true.
PFileParser * getCurrentParser()
Gets the current parser.