XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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)
 
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)
 

Enumeration Type Documentation

Enumerator
CreateManually 
Enumerator
Ampersand 
NLName 
ParaNameOrEnd 
Equals 
Value 
ValueOrEOL 
Enumerator
ReadFromFile 
ReadFromString 

Function Documentation

static void NLReader::change_D_to_E ( string &  param)
inlinestatic

Here is the caller graph for this function:

static string NLReader::get_first_value ( string &  str,
int  start 
)
inlinestatic

Here is the caller graph for this function:

static string NLReader::get_first_word ( string &  str,
int  start 
)
inlinestatic

Here is the caller graph for this function:

string& NLReader::ltrim ( string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline

Here is the caller graph for this function:

string& NLReader::rtrim ( string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

template<>
string NLReader::string_to_param< string > ( string &  param)
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: