![]() |
PhoenixToml
0.4.0
Toml parser for Phoenix
|
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. | |
DicoValue * | parse_get_parent_dico (DicoValue &parent, const PVecString &vecDicoName) |
Get the parent dictionary by respect to the vecDicoName. | |
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. | |
bool | parse_toml_isParse (const PTomlParserData &data) |
Say if the file parsing is enable. | |
void | parse_toml_stopParsing (PTomlParserData &data) |
Stop the file parsing. | |
bool | parse_toml_table_def (DicoValue &parent, PFileParser &parser, PTomlParserData &data) |
Parse a dico definition. | |
bool | parse_toml_var (DicoValue &dico, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. | |
bool | parse_toml_varBase (DicoValue &var, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. | |
bool | parse_toml_varName (PString &varName, PFileParser &parser) |
Parse a toml var name. | |
bool | parse_toml_varTable (DicoValue &dico, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. | |
bool | parse_toml_varValue (DicoValue &var, PFileParser &parser, PTomlParserData &data) |
Parse a toml var name. | |
bool | parse_tomlCompactDico (DicoValue &parent, PFileParser &parser, PTomlParserData &data) |
Parse a compact dico definition. | |
bool | parser_toml (DicoValue &dico, const PPath &fileName) |
Parse a toml file and update the given DicoValue. | |
bool | parser_toml_fileParser (DicoValue &dico, PFileParser &parser) |
Parse a yml file and update the given VecValue. | |
PTomlParserData default_PTomlParserData | ( | ) |
Default value of PTomlParserData.
Definition at line 19 of file parser_toml.cpp.
References PTomlParserData::isRun.
Referenced by parser_toml_fileParser().
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.
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 parse_get_parent_dico(), parse_toml_isParse(), and parse_toml_var().
Referenced by parser_toml_fileParser().
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(), parse_tomlCompactDico(), and parser_toml_fileParser().
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(), parse_tomlCompactDico(), and parser_toml_fileParser().
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 parse_get_parent_dico(), parse_toml_isParse(), and parse_toml_var().
Referenced by parser_toml_fileParser().
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 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 parse_toml_stopParsing(), parse_toml_varName(), parse_toml_varValue(), and parse_tomlCompactDico().
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.
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 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 parse_toml_isParse(), parse_toml_stopParsing(), and parse_toml_varValue().
Referenced by parse_toml_varBase(), and parse_toml_varValue().
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 parse_toml_isParse(), parse_toml_stopParsing(), and parse_toml_var().
Referenced by parse_toml_varBase().
bool parser_toml | ( | DicoValue & | dico, |
const PPath & | fileName ) |
Parse a toml file and update the given DicoValue.
[out] | dico | : dictionary of values |
fileName | : name of the file to be parsed |
Definition at line 276 of file parser_toml.cpp.
References parser_toml_fileParser().
bool parser_toml_fileParser | ( | DicoValue & | dico, |
PFileParser & | parser ) |
Parse a yml file and update the given VecValue.
[out] | dico | : dictionary of values |
parser | : PFileParser to be used |
Definition at line 252 of file parser_toml.cpp.
References default_PTomlParserData(), PTomlParserData::isRun, parse_toml_dico_def(), parse_toml_isParse(), parse_toml_stopParsing(), and parse_toml_table_def().
Referenced by parser_toml().