![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
Go to the source code of this file.
Classes | |
struct | PTomlParserData |
Data used to parse a toml file. More... | |
Functions | |
PTomlParserData | default_PTomlParserData () |
Default value of PTomlParserData. More... | |
DicoValue * | parse_get_parent_dico (DicoValue &parent, const PVecString &vecDicoName) |
Get the parent dictionary by respect to the vecDicoName. More... | |
bool | parse_toml_all (DicoValue &parent, PFileParser &parser, PTomlParserData &data) |
bool | parse_toml_dico_def (DicoValue &parent, PFileParser &parser, PTomlParserData &data) |
Parse a dico definition. More... | |
bool | parse_toml_isParse (const PTomlParserData &data) |
Say if the file parsing is enable. More... | |
void | parse_toml_stopParsing (PTomlParserData &data) |
Stop the file parsing. More... | |
bool | parse_toml_table_def (DicoValue &parent, PFileParser &parser, PTomlParserData &data) |
Parse a dico definition. More... | |
bool | parse_toml_var (DicoValue &dico, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. More... | |
bool | parse_toml_varBase (DicoValue &var, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. More... | |
bool | parse_toml_varName (PString &varName, PFileParser &parser) |
Parse a toml var name. More... | |
bool | parse_toml_varTable (DicoValue &dico, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. More... | |
bool | parse_toml_varValue (DicoValue &var, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. More... | |
bool | parse_tomlCompactDico (DicoValue &parent, PFileParser &parser, PTomlParserData &data) |
Parse a compact dico definition. More... | |
PTomlParserData default_PTomlParserData | ( | ) |
Default value of PTomlParserData.
Definition at line 19 of file parser_toml.cpp.
References PTomlParserData::isRun.
DicoValue* parse_get_parent_dico | ( | DicoValue & | parent, |
const PVecString & | vecDicoName | ||
) |
Get the parent dictionary by respect to the vecDicoName.
parent | : main DicoValue |
vecDicoName | : name of the parent DicoValue of the following attributes |
Definition at line 180 of file parser_toml.cpp.
References DicoValue::getMapChild(), and DicoValue::setKey().
Referenced by parse_toml_dico_def(), and parse_toml_table_def().
bool parse_toml_all | ( | DicoValue & | parent, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
bool parse_toml_dico_def | ( | DicoValue & | parent, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a dico definition.
[out] | parent | : parent VecValue |
[out] | parser | : PFileParser to be used |
[out] | data | : extra parser data to be used |
Definition at line 195 of file parser_toml.cpp.
References PFileParser::getUntilKeyWithoutPatern(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PFileParser::isMatchRewind(), parse_get_parent_dico(), parse_toml_isParse(), parse_toml_var(), and PString::split().
bool parse_toml_isParse | ( | const PTomlParserData & | data | ) |
Say if the file parsing is enable.
data | : parsing data |
Definition at line 38 of file parser_toml.cpp.
References PTomlParserData::isRun.
Referenced by parse_toml_dico_def(), parse_toml_table_def(), parse_toml_varValue(), and parse_tomlCompactDico().
void parse_toml_stopParsing | ( | PTomlParserData & | data | ) |
Stop the file parsing.
[out] | data | : parsing data |
Definition at line 31 of file parser_toml.cpp.
References PTomlParserData::isRun.
Referenced by parse_toml_varBase(), parse_toml_varValue(), and parse_tomlCompactDico().
bool parse_toml_table_def | ( | DicoValue & | parent, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a dico definition.
[out] | parent | : parent VecValue |
[out] | parser | : PFileParser to be used |
[out] | data | : extra parser data to be used |
Definition at line 223 of file parser_toml.cpp.
References PFileParser::getUntilKeyWithoutPatern(), DicoValue::getVecChild(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PFileParser::isMatchRewind(), parse_get_parent_dico(), parse_toml_isParse(), parse_toml_var(), and PString::split().
bool parse_toml_var | ( | DicoValue & | dico, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a toml var name.
[out] | dico | : DicoValue to be used |
[out] | parser | : parser to be used |
[out] | data | : extra parser data to be used |
Definition at line 155 of file parser_toml.cpp.
References DicoValue::getKey(), DicoValue::getMapChild(), and parse_toml_varBase().
Referenced by parse_toml_dico_def(), parse_toml_table_def(), and parse_tomlCompactDico().
bool parse_toml_varBase | ( | DicoValue & | var, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a toml var name.
[out] | var | : variable DicoValue to be used |
[out] | parser | : parser to be used |
[out] | data | : extra parser data to be used |
Definition at line 133 of file parser_toml.cpp.
References PFileParser::getLocation(), PFileParser::isMatch(), parse_toml_stopParsing(), parse_toml_varName(), parse_toml_varValue(), parse_tomlCompactDico(), and DicoValue::setKey().
Referenced by parse_toml_var(), and parse_toml_varTable().
bool parse_toml_varName | ( | PString & | varName, |
PFileParser & | parser | ||
) |
Parse a toml var name.
[out] | varName | : variable name |
parser | : parser to be used |
Definition at line 47 of file parser_toml.cpp.
References PFileParser::getStrComposedOf().
Referenced by parse_toml_varBase().
bool parse_toml_varTable | ( | DicoValue & | dico, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a toml var name.
[out] | dico | : DicoValue to be used |
[out] | parser | : parser to be used |
[out] | data | : extra parser data to be used |
Definition at line 168 of file parser_toml.cpp.
References DicoValue::getVecChild(), and parse_toml_varBase().
bool parse_toml_varValue | ( | DicoValue & | var, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a toml var name.
[out] | var | : Value to be updated |
[out] | parser | : parser to be used |
[out] | data | : extra parser data to be used |
Definition at line 58 of file parser_toml.cpp.
References DicoValue::getKey(), PFileParser::getLocation(), PFileParser::getStrComposedOf(), DicoValue::getVecChild(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PFileParser::isMatchRewind(), parse_generic_string(), parse_toml_isParse(), parse_toml_stopParsing(), and DicoValue::setValue().
Referenced by parse_toml_varBase().
bool parse_tomlCompactDico | ( | DicoValue & | parent, |
PFileParser & | parser, | ||
PTomlParserData & | data | ||
) |
Parse a compact dico definition.
[out] | parent | : parent of parsed dico |
[out] | parser | : parser to be used |
[out] | data | : extra parser data to be used |
Definition at line 106 of file parser_toml.cpp.
References PFileParser::getLocation(), PFileParser::getUntilKeyWithoutPatern(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PFileParser::isMatchRewind(), parse_toml_isParse(), parse_toml_stopParsing(), and parse_toml_var().
Referenced by parse_toml_varBase().