Alamo
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
IO::ParmParse Class Reference
Inheritance diagram for IO::ParmParse:
[legend]
Collaboration diagram for IO::ParmParse:
[legend]

Public Member Functions

 ParmParse (std::string arg)
 
 ParmParse ()
 
std::string getPrefix () const
 
void ignore (std::string name)
 
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)
 
int AnyUnusedInputs ()
 
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__)
 

Static Public Member Functions

static int AllUnusedInputs ()
 

Private Member Functions

void Define ()
 

Static Private Attributes

static bool checked_for_input_files = false
 

Detailed Description

Definition at line 110 of file ParmParse.H.

Constructor & Destructor Documentation

◆ ParmParse() [1/2]

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

Definition at line 129 of file ParmParse.H.

Here is the call graph for this function:

◆ ParmParse() [2/2]

IO::ParmParse::ParmParse ( )
inline

Definition at line 130 of file ParmParse.H.

Here is the call graph for this function:

Member Function Documentation

◆ AllUnusedInputs()

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

Definition at line 415 of file ParmParse.H.

Here is the call graph for this function:

◆ AnyUnusedInputs()

int IO::ParmParse::AnyUnusedInputs ( )
inline

Definition at line 388 of file ParmParse.H.

Here is the call graph for this function:

◆ contains()

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

Definition at line 151 of file ParmParse.H.

Here is the call graph for this function:

◆ Define()

void IO::ParmParse::Define ( )
inlineprivate

Definition at line 113 of file ParmParse.H.

Here is the call graph for this function:

◆ forbid()

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

Definition at line 137 of file ParmParse.H.

Here is the call graph for this function:

◆ full()

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

Definition at line 433 of file ParmParse.H.

Here is the call graph for this function:

◆ getPrefix()

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

Definition at line 131 of file ParmParse.H.

◆ GetUnusedInputs()

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

Definition at line 402 of file ParmParse.H.

Here is the call graph for this function:

◆ ignore()

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

Definition at line 132 of file ParmParse.H.

◆ prefix()

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

Definition at line 429 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 274 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 268 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 182 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 285 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 320 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 325 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 171 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 192 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 223 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 260 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 350 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 338 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 333 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 469 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 443 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 516 of file ParmParse.H.

Here is the call graph for this function:

◆ 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 495 of file ParmParse.H.

Here is the call graph for this function:

Field Documentation

◆ checked_for_input_files

bool IO::ParmParse::checked_for_input_files = false
staticprivate

Definition at line 126 of file ParmParse.H.


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