XGCa
Classes | Enumerations | Functions
NLReader Namespace Reference

Classes

struct  Param
 
struct  NameList
 
class  NamelistReader
 

Enumerations

enum  Expect {
  Ampersand =0 , NLName , ParaNameOrEnd , Equals ,
  Value , ValueOrEOL
}
 
enum  ReadFrom { ReadFromFile =0 , ReadFromString }
 
enum  Create { CreateManually =0 }
 

Functions

string & ltrim (string &s, const char *t=" \t\n\r\f\v")
 
string & rtrim (string &s, const char *t=" \t\n\r\f\v")
 
string & trim (string &s, const char *t=" \t\n\r\f\v")
 
static string get_first_word (string &str, int start)
 
static string get_first_value (string &str, int start)
 
static string lower_case_copy (const string &str)
 
template<typename T >
static T string_to_param (string &param)
 
template<>
bool string_to_param< bool > (string &param)
 
static void change_D_to_E (string &param)
 
template<>
int string_to_param< int > (string &param)
 
template<>
float string_to_param< float > (string &param)
 
template<>
double string_to_param< double > (string &param)
 
template<>
string string_to_param< string > (string &param)
 
template<typename T >
int find_case_insensitive_name_match (vector< T > &vec, const string &str)
 

Enumeration Type Documentation

◆ Create

Enumerator
CreateManually 

◆ Expect

Enumerator
Ampersand 
NLName 
ParaNameOrEnd 
Equals 
Value 
ValueOrEOL 

◆ ReadFrom

Enumerator
ReadFromFile 
ReadFromString 

Function Documentation

◆ change_D_to_E()

static void NLReader::change_D_to_E ( string &  param)
inlinestatic
Here is the caller graph for this function:

◆ find_case_insensitive_name_match()

template<typename T >
int NLReader::find_case_insensitive_name_match ( vector< T > &  vec,
const string &  str 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_first_value()

static string NLReader::get_first_value ( string &  str,
int  start 
)
inlinestatic
Here is the caller graph for this function:

◆ get_first_word()

static string NLReader::get_first_word ( string &  str,
int  start 
)
inlinestatic
Here is the caller graph for this function:

◆ lower_case_copy()

static string NLReader::lower_case_copy ( const string &  str)
inlinestatic
Here is the caller graph for this function:

◆ ltrim()

string& NLReader::ltrim ( string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline
Here is the caller graph for this function:

◆ rtrim()

string& NLReader::rtrim ( string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline
Here is the caller graph for this function:

◆ string_to_param()

template<typename T >
static T NLReader::string_to_param ( string &  param)
inlinestatic

◆ string_to_param< bool >()

template<>
bool NLReader::string_to_param< bool > ( string &  param)
Here is the call graph for this function:

◆ string_to_param< double >()

template<>
double NLReader::string_to_param< double > ( string &  param)
Here is the call graph for this function:

◆ string_to_param< float >()

template<>
float NLReader::string_to_param< float > ( string &  param)
Here is the call graph for this function:

◆ string_to_param< int >()

template<>
int NLReader::string_to_param< int > ( string &  param)
Here is the call graph for this function:

◆ string_to_param< string >()

template<>
string NLReader::string_to_param< string > ( string &  param)

◆ trim()

string& NLReader::trim ( string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function: