![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
#include "phoenix_get_string.h"
Go to the source code of this file.
Functions | |
bool | phoenix_convertBoolType (const PString &strConfig) |
Convert the configuration of the cleaning type into a bool. More... | |
PString | phoenix_get_string (const DicoValue &dico, const PString &varName, const PString &defaultValue) |
Get the string from a dictionnary. More... | |
PString | phoenix_get_string (const DicoValue &dico, const PString &varName, const PString &defaultValue, const PString &defaultValue2) |
Get the string from a dictionnary. More... | |
PVecString | phoenix_get_vecstring (const DicoValue &dico, const PString &varName) |
Load a vector of string from a dictionnary. More... | |
void | phoenix_get_vecstring (PVecString &vecValue, const DicoValue &dico, const PString &varName) |
Load a vector of string from a dictionnary. More... | |
template<> | |
bool | phoenix_load_value_from_config< bool > (const DicoValue &dico, const PString &varName, bool defaultValue) |
Get bool value from a dictionnary (specialization for bool) More... | |
template<> | |
bool | phoenix_load_value_from_dico< bool > (bool &value, const DicoValue &dico, const PString &varName) |
Get bool value from a dictionnary (specialization for bool) More... | |
template<> | |
bool | phoenix_save_value_to_dico< bool > (DicoValue &dico, const bool &value, const PString &varName) |
Save the value to a dictionnary (specialization for bool) More... | |
bool phoenix_convertBoolType | ( | const PString & | strConfig | ) |
Convert the configuration of the cleaning type into a bool.
strConfig | : configuration string |
Definition at line 13 of file phoenix_get_string.cpp.
References PString::toLower().
Referenced by convertBoolType(), phoenix_load_value_from_config< bool >(), and phoenix_load_value_from_dico< bool >().
PString phoenix_get_string | ( | const DicoValue & | dico, |
const PString & | varName, | ||
const PString & | defaultValue | ||
) |
Get the string from a dictionnary.
dico | : dictionnary to be used |
varName | : name of the variable to be used |
defaultValue | : default value |
Definition at line 101 of file phoenix_get_string.cpp.
References DicoValue::getMap(), and DicoValue::getString().
Referenced by checkLoadFromConfig().
PString phoenix_get_string | ( | const DicoValue & | dico, |
const PString & | varName, | ||
const PString & | defaultValue, | ||
const PString & | defaultValue2 | ||
) |
Get the string from a dictionnary.
dico | : dictionnary to be used |
varName | : name of the variable to be used |
defaultValue | : default value |
defaultValue2 | : default value to be used if the first defaultValue is empty |
Definition at line 117 of file phoenix_get_string.cpp.
References DicoValue::getMap(), and DicoValue::getString().
PVecString phoenix_get_vecstring | ( | const DicoValue & | dico, |
const PString & | varName | ||
) |
Load a vector of string from a dictionnary.
dico | : dictionnary to be used |
varName | : name of the variable to be used |
Definition at line 88 of file phoenix_get_string.cpp.
References phoenix_get_vecstring().
void phoenix_get_vecstring | ( | PVecString & | vecValue, |
const DicoValue & | dico, | ||
const PString & | varName | ||
) |
Load a vector of string from a dictionnary.
[out] | vecValue | : loaded vector of values |
dico | : dictionnary to be used | |
varName | : name of the variable to be used |
Definition at line 72 of file phoenix_get_string.cpp.
References DicoValue::getMap(), and DicoValue::getVecChild().
Referenced by checkLoadFromConfig(), and phoenix_get_vecstring().
bool phoenix_load_value_from_config< bool > | ( | const DicoValue & | dico, |
const PString & | varName, | ||
bool | defaultValue | ||
) |
Get bool value from a dictionnary (specialization for bool)
dico | : dictionnary to be used |
varName | : name of the variable to be used |
defaultValue | : default value |
Definition at line 25 of file phoenix_get_string.cpp.
References DicoValue::getMap(), DicoValue::getString(), and phoenix_convertBoolType().
Referenced by checkLoadFromConfig().
bool phoenix_load_value_from_dico< bool > | ( | bool & | value, |
const DicoValue & | dico, | ||
const PString & | varName | ||
) |
Get bool value from a dictionnary (specialization for bool)
[out] | value | : value to be loaded |
dico | : dictionnary to be used | |
varName | : name of the variable to be used | |
defaultValue | : default value |
Definition at line 42 of file phoenix_get_string.cpp.
References DicoValue::getMap(), DicoValue::getString(), and phoenix_convertBoolType().
Referenced by checkLoadFromConfig().
bool phoenix_save_value_to_dico< bool > | ( | DicoValue & | dico, |
const bool & | value, | ||
const PString & | varName | ||
) |
Save the value to a dictionnary (specialization for bool)
[out] | dico | : dictionnary to be updated |
value | : value to be saved | |
varName | : name of the variable to be used |
Definition at line 59 of file phoenix_get_string.cpp.
References phoenix_save_value_to_dico().
Referenced by checkLoadFromConfig().