Public Types | |
using | Option = CLI::Option |
using | ParseError = CLI::ParseError |
using | any = std::any |
Public Member Functions | |
commandLine (word appName) | |
commandLine (word appName, word disptn) | |
bool | parse (int argc, char **argv) |
template<typename Type > | |
Option * | addOption (word optionName, word description, word opText="") |
template<typename Type > | |
Option * | addOption (word optionName, Type &bindingVar, word description, word opText="") |
word | productName () const |
word | productNameCopyright () const |
template<typename Type > | |
pFlow::commandLine::Option * | addOption (word optionName, word description, word opText) |
template<typename Type > | |
pFlow::commandLine::Option * | addOption (word optionName, Type &bindingVar, word description, word opText) |
Protected Attributes | |
word | appName_ |
List< any > | internalBinVars_ |
Static Protected Attributes | |
static word | versionStr |
static word | copyRight = "(copyright(C): www.cemf.ir)" |
static word | versionName = "phasicFlow "+ versionStr |
static word | versoinCopyright = versionName + " " +copyRight |
static word | description |
Definition at line 36 of file commandLine.hpp.
using Option = CLI::Option |
Definition at line 42 of file commandLine.hpp.
using ParseError = CLI::ParseError |
Definition at line 44 of file commandLine.hpp.
using any = std::any |
Definition at line 46 of file commandLine.hpp.
commandLine | ( | word | appName | ) |
Definition at line 24 of file commandLine.cpp.
References commandLine::appName_, and commandLine::versionName.
commandLine | ( | word | appName, |
word | disptn | ||
) |
Definition at line 33 of file commandLine.cpp.
References Bold_Text, pFlow::endl(), pFlow::floatingPointDescription(), pFlow::mOutput, commandLine::versoinCopyright, and Yellow_Text.
bool parse | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 50 of file commandLine.cpp.
References count().
Referenced by main().
|
inline |
Definition at line 91 of file commandLine.hpp.
References commandLine::versionName.
|
inline |
Definition at line 96 of file commandLine.hpp.
References commandLine::versoinCopyright.
Referenced by main().
pFlow::commandLine::Option* addOption | ( | word | optionName, |
word | description, | ||
word | opText | ||
) |
Definition at line 108 of file commandLine.hpp.
References commandLine::description, fatalExit, and commandLine::internalBinVars_.
pFlow::commandLine::Option* addOption | ( | word | optionName, |
Type & | bindingVar, | ||
word | description, | ||
word | opText | ||
) |
Definition at line 129 of file commandLine.hpp.
References fatalExit.
|
protected |
Definition at line 50 of file commandLine.hpp.
Referenced by commandLine::commandLine().
Definition at line 52 of file commandLine.hpp.
Referenced by commandLine::addOption().
|
inlinestaticprotected |
Definition at line 54 of file commandLine.hpp.
|
inlinestaticprotected |
Definition at line 58 of file commandLine.hpp.
|
inlinestaticprotected |
Definition at line 60 of file commandLine.hpp.
Referenced by commandLine::commandLine(), and commandLine::productName().
|
inlinestaticprotected |
Definition at line 62 of file commandLine.hpp.
Referenced by commandLine::commandLine(), and commandLine::productNameCopyright().
|
inlinestaticprotected |
Definition at line 64 of file commandLine.hpp.
Referenced by commandLine::addOption().