Alamo
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
IO::ParmParse Class Reference

#include <ParmParse.H>

Inheritance diagram for IO::ParmParse:

Public Member Functions

 ParmParse (std::string arg)
 
 ParmParse ()
 
std::string getPrefix () const
 
void ignore (std::string name)
 
void pushPrefix (const std::string prefix)
 
void popPrefix ()
 
void forbid (std::string name, std::string explanation, std::string file="", std::string func="", int line=-1)
 
bool contains (std::string name)
 
template<typename T >
int query_required (std::string name, T &value, std::string file="", std::string func="", int line=-1)
 
template<typename T >
int query_default (std::string name, T &value, T defaultvalue, std::string="", std::string="", int=-1)
 
int query_validate (std::string name, int &value, std::vector< int > possibleintvals, std::string file="", std::string func="", int line=-1)
 
int query_validate (std::string name, std::string &value, std::vector< const char * > possiblecharvals, bool firstbydefault, std::string file="", std::string func="", int line=-1)
 
int query_validate (std::string name, std::string &value, std::vector< const char * > possiblecharvals, std::string file="", std::string func="", int line=-1)
 
int query_default (std::string name, std::string &value, const char *defaultvalue, std::string file="", std::string func="", int line=-1)
 
int query_default (std::string name, int &value, bool defaultvalue, std::string file="", std::string func="query_default", int line=-1)
 
int query_file (std::string name, std::string &value, bool copyfile, bool checkfile, std::string file="", std::string func="query_file", int line=-1)
 
int query_file (std::string name, std::string &value, bool copyfile, std::string file="", std::string func="query_file", int line=-1)
 
int query_file (std::string name, std::string &value, std::string file="", std::string func="query_file", int line=-1)
 
template<typename T >
int queryarr (std::string name, std::vector< T > &value, std::string, std::string, int)
 
int queryarr (std::string name, Set::Vector &value, std::string file="", std::string func="queryarr", int line=-1)
 
int queryarr (std::string name, Set::Matrix &value, std::string file="", std::string func="queryarr", int line=-1)
 
template<typename T >
int queryarr_required (std::string name, std::vector< T > &value, std::string file, std::string func, int line)
 
int queryarr_default (std::string name, std::vector< std::string > &value, std::string defaultvalue, std::string="", std::string="", int=-1)
 
template<typename T >
int queryclass_enumerate (std::string a_name, std::vector< T > &value, int number=1, std::string file="", std::string func="", int line=__LINE__)
 
template<typename T >
int query_enumerate (std::string a_name, std::vector< T > &value, int number=1, std::string file="", std::string func="", int line=__LINE__)
 
int AnyUnusedInputs (bool inscopeonly=true, bool verbose=false)
 
std::vector< std::string > GetUnusedInputs ()
 
std::string prefix ()
 
std::string full (std::string name)
 
template<class T >
void queryclass (std::string name, T *value, std::string file="", std::string func="", int line=-1)
 
template<class T >
void queryclass (std::string name, T &value, std::string file="", std::string func="", int line=__LINE__)
 
template<class T >
void queryclass (T *value, std::string file="", std::string func="", int line=__LINE__)
 
template<class T >
void queryclass (T &value, std::string file="", std::string func="", int line=__LINE__)
 
template<typename... IC, typename... Args, typename PTRTYPE >
void select (std::string name, PTRTYPE *&ic_eta, Args &&... args)
 
template<typename FirstIC , typename... IC, typename... Args, typename PTRTYPE >
void select_default (std::string name, PTRTYPE *&ic_eta, Args &&... args)
 
template<typename... IC, typename... Args, typename PTRTYPE >
void select_enumerate (std::string a_name, std::vector< PTRTYPE * > &value, Args &&... args)
 
template<typename... INTEGRATOR, typename... Args, typename PTRTYPE >
void select_main (PTRTYPE *&ic_eta, Args &&... args)
 
template<typename INTEGRATOR , typename Args , typename PTRTYPE >
void select_only (PTRTYPE *&ic_eta, Args &&args)
 
template<typename INTEGRATOR , typename PTRTYPE >
void select_only (PTRTYPE *&ic_eta)
 
template<typename... OBJ, typename CLASS >
void select (std::string name, CLASS &value)
 
template<int N>
void query_exactly (std::vector< std::string > names, std::pair< std::string, Set::Scalar > values[N])
 

Static Public Member Functions

static int AllUnusedInputs ()
 

Private Member Functions

void Define ()
 
template<typename CLASS , int N, typename... OBJ>
void static_polymorphism_parser (CLASS &value)
 

Static Private Attributes

static bool checked_for_input_files = false
 

Detailed Description

Definition at line 113 of file ParmParse.H.

Constructor & Destructor Documentation

◆ ParmParse() [1/2]

IO::ParmParse::ParmParse ( std::string  arg)
inline

Definition at line 132 of file ParmParse.H.

◆ ParmParse() [2/2]

IO::ParmParse::ParmParse ( )
inline

Definition at line 133 of file ParmParse.H.

Member Function Documentation

◆ AllUnusedInputs()

static int IO::ParmParse::AllUnusedInputs ( )
inlinestatic

Definition at line 605 of file ParmParse.H.

◆ AnyUnusedInputs()

int IO::ParmParse::AnyUnusedInputs ( bool  inscopeonly = true,
bool  verbose = false 
)
inline

Definition at line 567 of file ParmParse.H.

◆ contains()

bool IO::ParmParse::contains ( std::string  name)
inline

Definition at line 172 of file ParmParse.H.

◆ Define()

void IO::ParmParse::Define ( )
inlineprivate

Definition at line 116 of file ParmParse.H.

◆ forbid()

void IO::ParmParse::forbid ( std::string  name,
std::string  explanation,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 158 of file ParmParse.H.

◆ full()

std::string IO::ParmParse::full ( std::string  name)
inline

Definition at line 623 of file ParmParse.H.

◆ getPrefix()

std::string IO::ParmParse::getPrefix ( ) const
inline

Definition at line 134 of file ParmParse.H.

◆ GetUnusedInputs()

std::vector< std::string > IO::ParmParse::GetUnusedInputs ( )
inline

Definition at line 592 of file ParmParse.H.

◆ ignore()

void IO::ParmParse::ignore ( std::string  name)
inline

Definition at line 135 of file ParmParse.H.

◆ popPrefix()

void IO::ParmParse::popPrefix ( )
inline

Definition at line 148 of file ParmParse.H.

◆ prefix()

std::string IO::ParmParse::prefix ( )
inline

Definition at line 619 of file ParmParse.H.

◆ pushPrefix()

void IO::ParmParse::pushPrefix ( const std::string  prefix)
inline

Definition at line 140 of file ParmParse.H.

◆ query_default() [1/3]

int IO::ParmParse::query_default ( std::string  name,
int &  value,
bool  defaultvalue,
std::string  file = "",
std::string  func = "query_default",
int  line = -1 
)
inline

Definition at line 295 of file ParmParse.H.

◆ query_default() [2/3]

int IO::ParmParse::query_default ( std::string  name,
std::string &  value,
const char *  defaultvalue,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 289 of file ParmParse.H.

◆ query_default() [3/3]

template<typename T >
int IO::ParmParse::query_default ( std::string  name,
T &  value,
defaultvalue,
std::string  = "",
std::string  = "",
int  = -1 
)
inline

Definition at line 203 of file ParmParse.H.

◆ query_enumerate()

template<typename T >
int IO::ParmParse::query_enumerate ( std::string  a_name,
std::vector< T > &  value,
int  number = 1,
std::string  file = "",
std::string  func = "",
int  line = __LINE__ 
)
inline

Definition at line 501 of file ParmParse.H.

◆ query_exactly()

template<int N>
void IO::ParmParse::query_exactly ( std::vector< std::string >  names,
std::pair< std::string, Set::Scalar values[N] 
)
inline

Definition at line 933 of file ParmParse.H.

◆ query_file() [1/3]

int IO::ParmParse::query_file ( std::string  name,
std::string &  value,
bool  copyfile,
bool  checkfile,
std::string  file = "",
std::string  func = "query_file",
int  line = -1 
)
inline

Definition at line 306 of file ParmParse.H.

◆ query_file() [2/3]

int IO::ParmParse::query_file ( std::string  name,
std::string &  value,
bool  copyfile,
std::string  file = "",
std::string  func = "query_file",
int  line = -1 
)
inline

Definition at line 341 of file ParmParse.H.

◆ query_file() [3/3]

int IO::ParmParse::query_file ( std::string  name,
std::string &  value,
std::string  file = "",
std::string  func = "query_file",
int  line = -1 
)
inline

Definition at line 346 of file ParmParse.H.

◆ query_required()

template<typename T >
int IO::ParmParse::query_required ( std::string  name,
T &  value,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 192 of file ParmParse.H.

◆ query_validate() [1/3]

int IO::ParmParse::query_validate ( std::string  name,
int &  value,
std::vector< int >  possibleintvals,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 213 of file ParmParse.H.

◆ query_validate() [2/3]

int IO::ParmParse::query_validate ( std::string  name,
std::string &  value,
std::vector< const char * >  possiblecharvals,
bool  firstbydefault,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 244 of file ParmParse.H.

◆ query_validate() [3/3]

int IO::ParmParse::query_validate ( std::string  name,
std::string &  value,
std::vector< const char * >  possiblecharvals,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 281 of file ParmParse.H.

◆ queryarr() [1/3]

int IO::ParmParse::queryarr ( std::string  name,
Set::Matrix value,
std::string  file = "",
std::string  func = "queryarr",
int  line = -1 
)
inline

Definition at line 371 of file ParmParse.H.

◆ queryarr() [2/3]

int IO::ParmParse::queryarr ( std::string  name,
Set::Vector value,
std::string  file = "",
std::string  func = "queryarr",
int  line = -1 
)
inline

Definition at line 359 of file ParmParse.H.

◆ queryarr() [3/3]

template<typename T >
int IO::ParmParse::queryarr ( std::string  name,
std::vector< T > &  value,
std::string  ,
std::string  ,
int   
)
inline

Definition at line 354 of file ParmParse.H.

◆ queryarr_default()

int IO::ParmParse::queryarr_default ( std::string  name,
std::vector< std::string > &  value,
std::string  defaultvalue,
std::string  = "",
std::string  = "",
int  = -1 
)
inline

Definition at line 420 of file ParmParse.H.

◆ queryarr_required()

template<typename T >
int IO::ParmParse::queryarr_required ( std::string  name,
std::vector< T > &  value,
std::string  file,
std::string  func,
int  line 
)
inline

Definition at line 409 of file ParmParse.H.

◆ queryclass() [1/4]

template<class T >
void IO::ParmParse::queryclass ( std::string  name,
T &  value,
std::string  file = "",
std::string  func = "",
int  line = __LINE__ 
)
inline

Definition at line 659 of file ParmParse.H.

◆ queryclass() [2/4]

template<class T >
void IO::ParmParse::queryclass ( std::string  name,
T *  value,
std::string  file = "",
std::string  func = "",
int  line = -1 
)
inline

Definition at line 633 of file ParmParse.H.

◆ queryclass() [3/4]

template<class T >
void IO::ParmParse::queryclass ( T &  value,
std::string  file = "",
std::string  func = "",
int  line = __LINE__ 
)
inline

Definition at line 699 of file ParmParse.H.

◆ queryclass() [4/4]

template<class T >
void IO::ParmParse::queryclass ( T *  value,
std::string  file = "",
std::string  func = "",
int  line = __LINE__ 
)
inline

Definition at line 686 of file ParmParse.H.

◆ queryclass_enumerate()

template<typename T >
int IO::ParmParse::queryclass_enumerate ( std::string  a_name,
std::vector< T > &  value,
int  number = 1,
std::string  file = "",
std::string  func = "",
int  line = __LINE__ 
)
inline

Definition at line 434 of file ParmParse.H.

◆ select() [1/2]

template<typename... OBJ, typename CLASS >
void IO::ParmParse::select ( std::string  name,
CLASS &  value 
)
inline

Definition at line 877 of file ParmParse.H.

◆ select() [2/2]

template<typename... IC, typename... Args, typename PTRTYPE >
void IO::ParmParse::select ( std::string  name,
PTRTYPE *&  ic_eta,
Args &&...  args 
)
inline

Definition at line 721 of file ParmParse.H.

◆ select_default()

template<typename FirstIC , typename... IC, typename... Args, typename PTRTYPE >
void IO::ParmParse::select_default ( std::string  name,
PTRTYPE *&  ic_eta,
Args &&...  args 
)
inline

Definition at line 749 of file ParmParse.H.

◆ select_enumerate()

template<typename... IC, typename... Args, typename PTRTYPE >
void IO::ParmParse::select_enumerate ( std::string  a_name,
std::vector< PTRTYPE * > &  value,
Args &&...  args 
)
inline

Definition at line 773 of file ParmParse.H.

◆ select_main()

template<typename... INTEGRATOR, typename... Args, typename PTRTYPE >
void IO::ParmParse::select_main ( PTRTYPE *&  ic_eta,
Args &&...  args 
)
inline

Definition at line 838 of file ParmParse.H.

◆ select_only() [1/2]

template<typename INTEGRATOR , typename PTRTYPE >
void IO::ParmParse::select_only ( PTRTYPE *&  ic_eta)
inline

Definition at line 865 of file ParmParse.H.

◆ select_only() [2/2]

template<typename INTEGRATOR , typename Args , typename PTRTYPE >
void IO::ParmParse::select_only ( PTRTYPE *&  ic_eta,
Args &&  args 
)
inline

Definition at line 859 of file ParmParse.H.

◆ static_polymorphism_parser()

template<typename CLASS , int N, typename... OBJ>
void IO::ParmParse::static_polymorphism_parser ( CLASS &  value)
inlineprivate

Definition at line 896 of file ParmParse.H.

Field Documentation

◆ checked_for_input_files

bool IO::ParmParse::checked_for_input_files = false
staticprivate

Definition at line 129 of file ParmParse.H.


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