XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Enumerations | Functions
NamelistReader.hpp File Reference
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <cctype>
Include dependency graph for NamelistReader.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NLReader::Param
 
struct  NLReader::NameList
 
class  NLReader::NamelistReader
 

Namespaces

 NLReader
 

Enumerations

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

Functions

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