48 #define KEYWORD_MANDATORY true
50 #define KEYWORD_OPTIONAL false
52 #define KEYWORD_MANDATORY_NOT_FOUND 1
54 #define KEYWORD_OPTIONAL_SUCCESS 0
56 #define KEYWORD_OPTIONAL_ERROR 1
58 #define KEYWORD_OPTIONAL_NOT_FOUND 2
79 template<
typename T>
int ReadStringOption(
const string& a_input, T* ap_return,
int a_nbElts,
const string& sep,
const string& a_option);
106 template<
typename T>
int ReadDataASCIIFile(
const string& a_file,
const string& a_keyword, T* ap_return,
int a_nbElts,
bool a_mandatoryFlag);
134 template<
typename T>
int ReadDataASCIIFile(
const string& a_file,
const string& a_keyword, T* ap_return,
int a_nbElts,
int a_nbLines,
bool a_mandatoryFlag);
163 template<
typename T>
int ReadDataASCIIFile(
const string& a_file,
const string& a_keyword, T** a2p_return,
int a_nbElts,
int a_nbLines,
bool a_mandatoryFlag);
193 template<
typename T>
int ReadDataASCIIFile(
const string& a_file,
const string& a_keyword, T* ap_return,
int a_nbElts,
bool a_mandatoryFlag,
string a_firstTag,
string a_lastTag);
229 template<
typename T>
int ReadDataASCIIFile(
const string& a_file,
const string& a_keyword, T** a2p_return,
int a_nbElts,
int a_nbLines,
bool a_mandatoryFlag,
string a_firstTag,
string a_lastTag);
string ConvertAllSlashOccurrencesToBackSlash(const string &a_path)
string GetFileFromPath(const string &a_pathToFile)
Simply return the file from a path string passed in parameter.
int ConvertFromString(const string &a_str, string *a_result)
Copy the 'a_str' string in the position pointed by 'a_result'.
int ReadDataASCIIFile(const string &a_file, const string &a_keyword, T *ap_return, int a_nbElts, bool a_mandatoryFlag)
Look for "a_nbElts" elts in the "a_file" file matching the "a_keyword" string passed as parameter a...
string GetPathOfFile(const string &a_pathToFile)
Simply return the path to the directory of a file path string passed in parameter.
int ReadStringOption(const string &a_input, T *ap_return, int a_nbElts, const string &sep, const string &a_option)
Parse the 'a_input' string corresponding to the 'a_option' into 'a_nbElts' elements, using the 'sep' separator. The results are returned in the templated 'ap_return' dynamic templated array. Call "ConvertFromString()" to perform the correct conversion depending on the type of the data to convert.
bool FLTNBIsEqual(FLTNB a, FLTNB b, FLTNB a_eps)
Comparison of FLTNB numbers.