56 #ifndef _RNR_CMD_EXT_ARG_H 57 #define _RNR_CMD_EXT_ARG_H 122 const int &nFormIndex,
123 const int &nArgIndex,
124 const int &nArgInstance,
125 const std::string &strArg);
261 bool operator==(
const std::string &rval)
const;
263 bool operator==(
const char*
const &rval)
const;
285 bool operator!=(
const std::string &rval)
const {
return !(*
this == rval);}
287 bool operator!=(
const char*
const &rval)
const {
return !(*
this == rval);}
289 bool operator!=(
const bool &rval)
const {
return !(*
this == rval); }
291 bool operator!=(
const long &rval)
const {
return !(*
this == rval); }
293 bool operator!=(
const double &rval)
const {
return !(*
this == rval); }
350 void arg(
const std::string &strArg)
360 void s(
const std::string &strVal);
370 void e(
const long eVal);
377 void b(
const bool bVal);
384 void i(
const long lVal);
391 void f(
const double fVal);
402 #endif // _RNR_CMD_EXT_ARG_H CvtType m_eCvtType
converted type
std::string m_strArg
argument unconverted raw value string
Command EXTended ARGument class holding parsed command context and the raw and converted argmument va...
const std::string & s() const
Get the converted string value.
unknown or uninitialized type
int m_nCmdUid
command definition unique id
int m_nArgIndex
argument definition index
CvtType type() const
Get the converted argument type.
int argInstance() const
Get the argument's instance number of (uid, formindex, argindex) parsed argument definition index...
int formIndex() const
Get the argument's associated parsed form definition index.
Command argument compiled definition class.
long i() const
Get the converted integer value.
std::string m_strCvtVal
converted string value
int uid() const
Get the argument's associated parsed command unique id.
double m_fCvtVal
converted float-point number value
int m_nArgInstance
argument instance (FUTURE)
bool m_bCvtVal
converted boolean value
floating-point number type
CmdExtArg & operator=(const CmdExtArg &rhs)
Assignment operator.
bool b() const
Get the converted boolean value.
std::vector< CmdExtArg > CmdExtArgVec
vector of ext args type
bool isValid() const
Check if converted value is valid.
index into literal enumeration list
int m_nFormIndex
form definition index
virtual ~CmdExtArg()
Destructor.
const std::string & arg() const
Get raw source argument string (or a pirate grunting).
double f() const
Get the converted floating-point number value.
bool operator==(const CmdExtArg &rval) const
Comparison operator this == rval.
friend std::ostream & operator<<(std::ostream &os, const CmdExtArg &arg)
Insert object into output stream.
CmdExtArg()
Default constructor.
int argIndex() const
Get the argument's associated parsed argument definition index.
long e() const
Get the converted enumeration index value.
bool operator!=(const CmdExtArg &rval) const
Comparison operator this != rval.
void arg(const std::string &strArg)
Set the argument string value.
long m_lCvtVal
converted integer/index value