![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
Go to the source code of this file.
Functions | |
bool | ptimetable_load (PTimeTable &timetable, const PPath &configFile) |
Load the PTimeTable with a toml configuration. More... | |
bool | ptimetable_loadBlock (PTimeTable &timetable, const DicoValue &dico) |
Load the blocks of the PTimeTable. More... | |
bool | ptimetable_loadSpeaker (std::vector< PLatexSpeaker > &vecOutputSpeaker, const DicoValue &dico) |
Load the speakers of the PTimeTable. More... | |
bool | ptimetable_loadSpeaker (std::vector< PLatexSpeaker > &vecSpeaker, const PPath &configFile) |
Load the PTimeTable with a toml configuration. More... | |
PString | ptimetable_loadString (const DicoValue &dico, const PString &attributeName) |
Load a string value. More... | |
bool | ptimetable_parseLatexAttribute (PLatexObj &obj, const DicoValue &value, const PString &attributeName) |
Parse an attribute in PLatexObj. More... | |
PLatexDate | ptimetable_parsePLatexDate (const PString &str) |
Load a PLatexDate with a string. More... | |
PLatexTime | ptimetable_parsePLatexTime (const PString &str) |
Load a PLatexTime with a string. More... | |
bool ptimetable_load | ( | PTimeTable & | timetable, |
const PPath & | configFile | ||
) |
Load the PTimeTable with a toml configuration.
[out] | timetable | : PTimeTable to be updated |
configFile | : configuration file to be used |
Definition at line 158 of file ptimtable_load.cpp.
References PTimeTable::getLocation(), DicoValue::getMap(), PTimeTable::getName(), PTimeTable::getVecSpeaker(), parser_toml(), ptimetable_loadBlock(), ptimetable_loadSpeaker(), ptimetable_loadString(), ptimetable_parseLatexAttribute(), ptimetable_parsePLatexDate(), PTimeTable::setBeginDate(), PTimeTable::setEndDate(), PTimeTable::setInvitation(), and PTimeTable::setMainUrl().
Referenced by PConfigParser::parseTimeTable().
bool ptimetable_loadBlock | ( | PTimeTable & | timetable, |
const DicoValue & | dico | ||
) |
Load the blocks of the PTimeTable.
[out] | timetable | : PTimeTable to be updated |
dico | : DicoValue of the PTimeTable configuration |
Definition at line 110 of file ptimtable_load.cpp.
References eraseFirstLastChar(), PTimeTableBlock::getDescription(), PTimeTableBlock::getLocation(), DicoValue::getMap(), PTimeTableBlock::getTitle(), PTimeTable::getVecBlock(), DicoValue::getVecChild(), PTimeTableBlock::getWeekTitle(), ptimetable_loadString(), ptimetable_parseLatexAttribute(), ptimetable_parsePLatexDate(), ptimetable_parsePLatexTime(), PTimeTableBlock::setBeginTime(), PTimeTableBlock::setDate(), PTimeTableBlock::setDuration(), PTimeTableBlock::setInvitation(), PTimeTableBlock::setMainUrl(), PTimeTableBlock::setQuestionTime(), PTimeTableBlock::setStyle(), and PTimeTableBlock::setVecSpeaker().
Referenced by ptimetable_load().
bool ptimetable_loadSpeaker | ( | std::vector< PLatexSpeaker > & | vecOutputSpeaker, |
const DicoValue & | dico | ||
) |
Load the speakers of the PTimeTable.
[out] | vecOutputSpeaker | : vector of PLatexSpeaker to be updated |
dico | : DicoValue of the PTimeTable configuration |
Definition at line 42 of file ptimtable_load.cpp.
References PLatexSpeaker::getAffiliation(), PLatexSpeaker::getDescription(), PLatexSpeaker::getJob(), DicoValue::getMap(), PLatexSpeaker::getName(), PLatexSpeaker::getTitle(), DicoValue::getVecChild(), ptimetable_loadString(), ptimetable_parseLatexAttribute(), and PLatexSpeaker::setLabel().
Referenced by PConfigParser::parseAddSpeaker(), ptimetable_load(), and ptimetable_loadSpeaker().
bool ptimetable_loadSpeaker | ( | std::vector< PLatexSpeaker > & | vecSpeaker, |
const PPath & | configFile | ||
) |
Load the PTimeTable with a toml configuration.
[out] | timetable | : PTimeTable to be updated |
configFile | : configuration file to be used |
Definition at line 140 of file ptimtable_load.cpp.
References parser_toml(), and ptimetable_loadSpeaker().
Load a string value.
dico | : DicoValue to be used |
attributeName | : name of the attribute to read |
Definition at line 15 of file ptimtable_load.cpp.
References PString::eraseFirstLastChar().
Referenced by ptimetable_load(), ptimetable_loadBlock(), ptimetable_loadSpeaker(), and ptimetable_parseLatexAttribute().
bool ptimetable_parseLatexAttribute | ( | PLatexObj & | obj, |
const DicoValue & | value, | ||
const PString & | attributeName | ||
) |
Parse an attribute in PLatexObj.
[out] | obj | : PLatexObj to be initialised |
value | : DicoValue with string to be parsed into obj | |
attributeName | : name of the attribute to be parsed |
Definition at line 25 of file ptimtable_load.cpp.
References platexobj_parseStr(), and ptimetable_loadString().
Referenced by ptimetable_load(), ptimetable_loadBlock(), and ptimetable_loadSpeaker().
PLatexDate ptimetable_parsePLatexDate | ( | const PString & | str | ) |
Load a PLatexDate with a string.
str | : date in string |
Definition at line 73 of file ptimtable_load.cpp.
References PLatexDate::setDay(), PLatexDate::setMonth(), PLatexDate::setYear(), and PString::split().
Referenced by ptimetable_load(), and ptimetable_loadBlock().
PLatexTime ptimetable_parsePLatexTime | ( | const PString & | str | ) |
Load a PLatexTime with a string.
str | : date in string |
Definition at line 93 of file ptimtable_load.cpp.
References PLatexTime::setHour(), PLatexTime::setMinute(), and PString::split().
Referenced by ptimetable_loadBlock().