36 valueStrInt.
setKey(
"valueInt");
51 bool valueBool(
false);
55 bool valueBoolToSave(
true), valueBoolToSaveFalse(
true);
62 phoenix_assert(phoenix_load_value_from_config<std::string>(dico,
"value",
"false") ==
"true");
63 phoenix_assert(phoenix_load_value_from_config<std::string>(dico,
"no_value",
"false") ==
"false");
83 int main(
int argc,
char** argv){
std::vector< PString > PVecString
void setKey(const PString &key)
Sets the key of the DicoValue.
bool hasKey() const
Say if the DicoValue has a key.
const std::vector< DicoValue > & getVecChild() const
Gets the vecChild of the DicoValue.
void setValue(const PString &value)
Sets the value of the DicoValue.
bool hasMap() const
Say if the DicoValue has a map of children.
const std::map< PString, DicoValue > & getMapChild() const
Gets the mapChild of the DicoValue.
bool hasVec() const
Say if the DicoValue has a vector of children.
#define phoenix_assert(isOk)
bool phoenix_check(const std::string &testName, const std::string &val, const std::string &reference)
Check two string.
PString phoenix_get_string(const DicoValue &dico, const PString &varName, const PString &defaultValue)
Get the string from a dictionnary.
bool phoenix_load_value_from_dico< bool >(bool &value, const DicoValue &dico, const PString &varName)
Get bool value from a dictionnary (specialization for bool)
bool phoenix_convertBoolType(const PString &strConfig)
Convert the configuration of the cleaning type into a bool.
bool phoenix_save_value_to_dico< bool >(DicoValue &dico, const bool &value, const PString &varName)
Save the value to a dictionnary (specialization for bool)
bool phoenix_load_value_from_config< bool >(const DicoValue &dico, const PString &varName, bool defaultValue)
Get bool value from a dictionnary (specialization for bool)
void phoenix_get_vecstring(PVecString &vecValue, const DicoValue &dico, const PString &varName)
Load a vector of string from a dictionnary.
bool phoenix_load_value_from_dico(T &value, const DicoValue &dico, const PString &varName)
Get the value from a dictionnary.
int main(int argc, char **argv)
void checkLoadFromConfig()
Check load from config.
void convertBoolType()
CHeck the phoenix_convertBoolType.