openfluid::tools Namespace Reference
Detailed Description
Available tools for data processing
Function Documentation
template<typename T >
bool openfluid::tools::ConvertString |
( |
const std::string & |
StrToConvert, |
|
|
T * |
Converted | |
|
) |
| | [inline] |
Template function for string to other type conversion
- Parameters:
-
[in] | StrToConvert | the string to convert |
[out] | Converted | the result of the conversion |
- Returns:
- true if the conversion is correct
template<typename T >
bool openfluid::tools::ConvertValue |
( |
const T |
ValueToConvert, |
|
|
std::string * |
StrConverted | |
|
) |
| | [inline] |
Template function for value to string conversion
- Parameters:
-
[in] | ValueToConvert | the value to convert |
[out] | StrConverted | the result of the conversion |
- Returns:
- true if the conversion is correct
bool openfluid::tools::IsCloseEnough |
( |
double |
A, |
|
|
double |
B, |
|
|
double |
Epsilon = 0.00001 | |
|
) |
| | [inline] |
bool openfluid::tools::IsVeryClose |
( |
double |
A, |
|
|
double |
B, |
|
|
double |
Epsilon = 0.00001 | |
|
) |
| | [inline] |
void openfluid::tools::TokenizeString |
( |
const std::string & |
StrToTokenize, |
|
|
std::vector< std::string > & |
Tokens, |
|
|
const std::string & |
Delimiters | |
|
) |
| | |
Function for tokenizing string into a vector of tokens
- Parameters:
-
[in] | StrToTokenize | the string to tokenize |
[out] | Tokens | the resulting tokens |
[in] | Delimiters | the string delimiter |