XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
NLReader::NamelistReader Class Reference

#include <NamelistReader.hpp>

Public Member Functions

 NamelistReader (const string &filename)
 
 NamelistReader (const string &str_name, ReadFrom read_from)
 
 NamelistReader (Create create)
 
void enable_modifications ()
 
void add_namelist (const string &namelist)
 
void add_to_namelist (const string &param, const string &val)
 
void add_to_param (const string &val)
 
bool check_all_used ()
 
bool namelist_present (const string &namelist)
 
void use_namelist (const string &namelist)
 
bool present (const string &param)
 
template<typename T >
get (const string &param, const T default_val, int val_ind=0)
 
template<typename T >
get_required (const string &param, int val_ind=0)
 

Private Member Functions

template<class T >
void parse_lines (T &newfile, const string &filename)
 
void load (const string &filename)
 
void load_from_string (const string &str)
 

Private Attributes

vector< NameListnamelists
 
int namelist_index
 
bool use_all
 
bool modifiable
 

Constructor & Destructor Documentation

NLReader::NamelistReader::NamelistReader ( const string &  filename)
inline
NLReader::NamelistReader::NamelistReader ( const string &  str_name,
ReadFrom  read_from 
)
inline
NLReader::NamelistReader::NamelistReader ( Create  create)
inline

Member Function Documentation

void NLReader::NamelistReader::add_namelist ( const string &  namelist)
inline
void NLReader::NamelistReader::add_to_namelist ( const string &  param,
const string &  val 
)
inline
void NLReader::NamelistReader::add_to_param ( const string &  val)
inline
bool NLReader::NamelistReader::check_all_used ( )
inline
void NLReader::NamelistReader::enable_modifications ( )
inline
template<typename T >
T NLReader::NamelistReader::get ( const string &  param,
const T  default_val,
int  val_ind = 0 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
T NLReader::NamelistReader::get_required ( const string &  param,
int  val_ind = 0 
)
inline

Here is the call graph for this function:

void NLReader::NamelistReader::load ( const string &  filename)
inlineprivate
void NLReader::NamelistReader::load_from_string ( const string &  str)
inlineprivate
bool NLReader::NamelistReader::namelist_present ( const string &  namelist)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void NLReader::NamelistReader::parse_lines ( T &  newfile,
const string &  filename 
)
inlineprivate

Here is the call graph for this function:

bool NLReader::NamelistReader::present ( const string &  param)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

void NLReader::NamelistReader::use_namelist ( const string &  namelist)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool NLReader::NamelistReader::modifiable
private
int NLReader::NamelistReader::namelist_index
private
vector<NameList> NLReader::NamelistReader::namelists
private
bool NLReader::NamelistReader::use_all
private

The documentation for this class was generated from the following file: