|
ifw
0.0.1-dev
|
Classes | |
| class | Value |
| Generic value container. Primarily for internal usage. More... | |
Functions | |
| std::string | DblToString (const double dbl_val, const std::string &prec_or_format="3") |
| Convert a double value to its string representation, applying the given precision. More... | |
| std::string | BoolToString (const bool bool_val, const bool long_format=true) |
| Convert a boolean value to a string (Short format: T/F; Long format: True/False). More... | |
| bool | Boolean (const std::string &value, const bool permissive=true) |
| Interpret a string as a boolean (t/T/true/TRUE -> true; f/F/false/FALSE -> false). More... | |
| void | Convert (const std::string &value, ctd::defines::DataType data_type, Value &native_value) |
| Convert a value represented as a string into its 'native type'. Data type given. More... | |
| template<class TYPE > | |
| std::string | NbToStr (const TYPE number, const std::string &format="") |
| Convert the given value to a string representation. More... | |
| template<class TYPE > | |
| std::string | TypeName (TYPE instance) |
| Get the typename of the given variable as a string. More... | |
| template<class TYPE > | |
| void | Convert (const std::string &str_value, TYPE &native_value) |
| Convert a value represented as string into its 'native type'. Data type not given. More... | |
Interpret a string as a boolean (t/T/true/TRUE -> true; f/F/false/FALSE -> false).
Convert a boolean value to a string (Short format: T/F; Long format: True/False).
| void ctd::conversion::Convert | ( | const std::string & | value, |
| ctd::defines::DataType | data_type, | ||
| Value & | native_value | ||
| ) |
Convert a value represented as a string into its 'native type'. Data type given.
| void ctd::conversion::Convert | ( | const std::string & | str_value, |
| TYPE & | native_value | ||
| ) |
Convert a value represented as string into its 'native type'. Data type not given.
Convert a double value to its string representation, applying the given precision.
| std::string ctd::conversion::NbToStr | ( | const TYPE | number, |
| const std::string & | format = "" |
||
| ) |
Convert the given value to a string representation.
| std::string ctd::conversion::TypeName | ( | TYPE | instance | ) |
Get the typename of the given variable as a string.
1.8.5