1 #ifndef CORE_CommandLine_H
2 #define CORE_CommandLine_H
54 inline static SP::CORE_CommandLine
New() {
108 int& attValue)
const {
120 tFlag& attValue)
const {
132 tReal& attValue)
const {
DEFINE_SPTR(CORE_CommandLine)
void setProgramName(const tString &name)
set program name
Definition: CORE_CommandLine.h:65
tBoolean readOption(const tString &options, const tString &attName, tString &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.cpp:54
static long int parseInt(tString str)
return the integer associated to the string
Definition: CORE_Integer.cpp:120
static tBoolean string2Boolean(const tString &c)
return the booleazn corresponding to string
Definition: CORE_String.h:376
tBoolean readOption(const tString &options, const tString &attName, tFlag &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.h:118
#define tBoolean
Definition: types.h:35
static SP::CORE_CommandLine New()
return a New shared pointer associated to CORE_CommandLine class
Definition: CORE_CommandLine.h:54
This class is the class to manage CORE from command line.
Definition: CORE_CommandLine.h:17
tBoolean readArgument(const tString &options, const int &n, tString &value) const
read first value after command
Definition: CORE_CommandLine.cpp:15
virtual ~CORE_CommandLine(void)
destroy an object.
Definition: CORE_CommandLine.cpp:12
tString getProgramName() const
get program name
Definition: CORE_CommandLine.h:71
virtual tString interpretCommandLine(const tString &path, const tString &command, const tString &options, tBoolean &succeeds) const
interprete the command line
Definition: CORE_CommandLine.cpp:109
abstract base class for most classes.
Definition: CORE_Object.h:30
tBoolean readOption(const tString &options, const tString &attName, int &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.h:106
#define tString
Definition: types.h:36
static long double parseReal(const tString &str)
return the real associated to the string
Definition: CORE_Real.cpp:78
tBoolean readOption(const tString &options, const tString &attName, tBoolean &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.h:142
CORE_CommandLine(void)
create an object
Definition: CORE_CommandLine.cpp:5
tBoolean readFirstArgument(const tString &options, tString &value) const
read first value after command
Definition: CORE_CommandLine.h:158
#define tReal
Definition: types.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14
virtual tString help(const tString &path, const tString &options, tBoolean &succeeds) const
return the help result command
Definition: CORE_CommandLine.cpp:87
tBoolean readOption(const tString &options, const tString &attName, tReal &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.h:130