![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
Go to the source code of this file.
Functions | |
bool | checkConstDicoValue (const DicoValue &dico) |
Check a const DicoValue. More... | |
int | main (int argc, char **argv) |
bool | saveDico (const DicoValue &dv, const PPath &fileName) |
Save the given DicoValue in the given file. More... | |
bool | testDicoBadParsing (const PString &fileContent) |
Check all the bad parsing. More... | |
bool | testDicoDicoString (const PPath &fileName) |
Test the DicoValue. More... | |
bool | testDicoDicoValueKeyPtr (const DicoValue *dv, int expectedValue) |
Test the value of the given DicoValue. More... | |
bool | testDicoGoodParsing (const PString &fileContent) |
Check all the good parsing. More... | |
bool | testDicoSaveParsing (const PString &fileContent) |
Check all the bad parsing. More... | |
bool | testDicoValue (const PPath &fileName) |
Test the DicoValue. More... | |
bool | testDicoValue2 (const PPath &fileName) |
Test the DicoValue. More... | |
bool | testDicoValue3 (const PPath &fileName) |
Test the DicoValue. More... | |
bool | testDicoValueKey (const DicoValue &dv, int expectedValue) |
Test the value of the given DicoValue. More... | |
bool | testDicoValueKey (const DicoValue *dv, int expectedValue) |
Test the value of the given DicoValue. More... | |
bool | testDicoValueKeyPtr (const DicoValue *dv, int expectedValue) |
Test the value of the given DicoValue. More... | |
bool | testDicoVecString (const PPath &fileName) |
Test the DicoValue. More... | |
bool | testDicoVecValue (const PPath &fileName) |
Test the DicoValue. More... | |
bool | testDicoVecValueKeyPtr (const DicoValue *dv, int expectedValue) |
Test the value of the given DicoValue. More... | |
void | testFromJSonToJSon () |
Test JSON to JSON convertion. More... | |
bool checkConstDicoValue | ( | const DicoValue & | dico | ) |
Check a const DicoValue.
dico | : DicoValue |
Definition at line 25 of file main.cpp.
References DicoValue::getMap().
Referenced by testDicoValue().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 285 of file main.cpp.
References phoenix_assert, testDicoBadParsing(), testDicoDicoString(), testDicoGoodParsing(), testDicoSaveParsing(), testDicoValue(), testDicoValue2(), testDicoValue3(), testDicoVecString(), testDicoVecValue(), and testFromJSonToJSon().
Save the given DicoValue in the given file.
dv | : DicoValue to be saved |
fileName | : name of the file to be saved |
Definition at line 17 of file main.cpp.
References PString::replace(), and DicoValue::save().
Referenced by testDicoDicoString(), testDicoValue(), testDicoValue2(), testDicoValue3(), testDicoVecString(), and testDicoVecValue().
bool testDicoBadParsing | ( | const PString & | fileContent | ) |
Check all the bad parsing.
fileContent | : wrong file content |
Definition at line 250 of file main.cpp.
References DicoValue::load(), and PPath::saveFileContent().
Referenced by main().
bool testDicoDicoString | ( | const PPath & | fileName | ) |
Test the DicoValue.
fileName | : name of the file to be used |
Definition at line 215 of file main.cpp.
References DicoValue::getMap(), DicoValue::load(), saveDico(), and testDicoDicoValueKeyPtr().
Referenced by main().
bool testDicoDicoValueKeyPtr | ( | const DicoValue * | dv, |
int | expectedValue | ||
) |
Test the value of the given DicoValue.
dv | : DicoValue to be checked |
expectedValue | : expected value |
Definition at line 194 of file main.cpp.
References DicoValue::getMap(), DicoValue::getMapChild(), and testDicoValueKey().
Referenced by testDicoDicoString().
bool testDicoGoodParsing | ( | const PString & | fileContent | ) |
Check all the good parsing.
fileContent | : wrong file content |
Definition at line 237 of file main.cpp.
References DicoValue::load(), and PPath::saveFileContent().
Referenced by main().
bool testDicoSaveParsing | ( | const PString & | fileContent | ) |
Check all the bad parsing.
fileContent | : wrong file content |
Definition at line 263 of file main.cpp.
References DicoValue::save(), and DicoValue::setValue().
Referenced by main().
bool testDicoValue | ( | const PPath & | fileName | ) |
Test the DicoValue.
fileName | : name of the file to be used |
Definition at line 35 of file main.cpp.
References checkConstDicoValue(), DicoValue::getKey(), DicoValue::getMap(), DicoValue::getMapChild(), DicoValue::getValue(), DicoValue::getVecChild(), DicoValue::load(), saveDico(), DicoValue::setMapChild(), and DicoValue::setVecChild().
Referenced by main().
bool testDicoValue2 | ( | const PPath & | fileName | ) |
Test the DicoValue.
fileName | : name of the file to be used |
Definition at line 71 of file main.cpp.
References DicoValue::getMapChild(), DicoValue::isKeyExist(), DicoValue::load(), saveDico(), and testDicoValueKey().
Referenced by main().
bool testDicoValue3 | ( | const PPath & | fileName | ) |
Test the DicoValue.
fileName | : name of the file to be used |
Definition at line 104 of file main.cpp.
References DicoValue::getMap(), DicoValue::load(), saveDico(), and testDicoValueKeyPtr().
Referenced by main().
bool testDicoValueKey | ( | const DicoValue & | dv, |
int | expectedValue | ||
) |
Test the value of the given DicoValue.
dv | : DicoValue to be checked |
expectedValue | : expected value |
Definition at line 62 of file main.cpp.
References DicoValue::getValue(), and phoenix_check().
Referenced by testDicoDicoValueKeyPtr(), and testDicoValue2().
bool testDicoValueKey | ( | const DicoValue * | dv, |
int | expectedValue | ||
) |
Test the value of the given DicoValue.
dv | : DicoValue to be checked |
expectedValue | : expected value |
Definition at line 185 of file main.cpp.
References DicoValue::getValue(), and phoenix_check().
bool testDicoValueKeyPtr | ( | const DicoValue * | dv, |
int | expectedValue | ||
) |
Test the value of the given DicoValue.
dv | : DicoValue to be checked |
expectedValue | : expected value |
Definition at line 91 of file main.cpp.
References DicoValue::getValue().
Referenced by testDicoValue3().
bool testDicoVecString | ( | const PPath & | fileName | ) |
Test the DicoValue.
fileName | : name of the file to be used |
Definition at line 162 of file main.cpp.
References DicoValue::getMap(), DicoValue::load(), saveDico(), and testDicoVecValueKeyPtr().
Referenced by main().
bool testDicoVecValue | ( | const PPath & | fileName | ) |
Test the DicoValue.
fileName | : name of the file to be used |
Definition at line 145 of file main.cpp.
References DicoValue::getMap(), DicoValue::load(), saveDico(), and testDicoVecValueKeyPtr().
Referenced by main().
bool testDicoVecValueKeyPtr | ( | const DicoValue * | dv, |
int | expectedValue | ||
) |
Test the value of the given DicoValue.
dv | : DicoValue to be checked |
expectedValue | : expected value |
Definition at line 123 of file main.cpp.
References DicoValue::getVecChild().
Referenced by testDicoVecString(), and testDicoVecValue().
void testFromJSonToJSon | ( | ) |
Test JSON to JSON convertion.
Definition at line 273 of file main.cpp.
References DicoValue::fromString(), PPath::getFileName(), DicoValue::load(), phoenix_assert, phoenix_check(), DicoValue::save(), and DicoValue::toString().
Referenced by main().