1 #ifndef CORE_CommandLine_H 2 #define CORE_CommandLine_H 54 inline static SP::CORE_CommandLine
New() {
120 tInt& attValue)
const {
132 tFlag& attValue)
const {
144 tReal& attValue)
const {
static tLLInt parseInt(const tString &str)
return the integer associated to the string
Definition: CORE_Integer.cpp:102
DEFINE_SPTR(CORE_CommandLine)
void setProgramName(const tString &name)
set program name
Definition: CORE_CommandLine.h:65
virtual tString help(const tString &path, const tString &options, tBoolean &succeeds) const
return the help result command
Definition: CORE_CommandLine.cpp:87
static tBoolean string2Boolean(const tString &c)
return the booleazn corresponding to string
Definition: CORE_String.h:470
tBoolean readArgument(const tString &options, const tInteger &n, tString &value) const
read first value after command
Definition: CORE_CommandLine.cpp:14
virtual tString interpretCommandLine(const tString &path, const tString &command, const tString &options, tBoolean &succeeds) const
interprete the command line
Definition: CORE_CommandLine.cpp:109
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:130
static tLDouble parseReal(const tString &str)
return the real associated to the string
Definition: CORE_Real.h:201
SP_OBJECT(CORE_CommandLine)
tString getProgramName() const
get program name
Definition: CORE_CommandLine.h:71
tBoolean readOption(const tString &options, const tString &attName, tInteger &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.h:106
#define tBoolean
Definition: types.h:139
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
tString mProgram
Definition: CORE_CommandLine.h:24
tBoolean readOption(const tString &options, const tString &attName, tInt &attValue) const
read option attName and return the value of the options in attValue
Definition: CORE_CommandLine.h:118
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:142
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:154
virtual ~CORE_CommandLine(void)
destroy an object.
Definition: CORE_CommandLine.cpp:11
tBoolean readFirstArgument(const tString &options, tString &value) const
read first value after command
Definition: CORE_CommandLine.h:170
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
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
CORE_CommandLine(void)
create an object
Definition: CORE_CommandLine.cpp:5
#define tInt
Definition: types.h:35
#define tReal
Definition: types.h:118
#define tInteger
Definition: types.h:90
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141
#define tFlag
Definition: types.h:74