gArg Class Reference

#include <garg.h>

Inheritance diagram for gArg:

gList gListGeneric gStorage gTop List of all members.

Public Member Functions

 gArg (char **argv, char **envp=nil)
virtual ~gArg ()
unsigned NumberParams ()
char * Program ()
gParamValGetOptionPtr (unsigned idx)
int AddParams (t_uint16 paramStart, char *s)
int FlushParams ()
bool NoArg ()
bool FindOption (char c)
bool FindOption (char *s)
bool FindOption (char *s, int &val)
bool FindOption (char *s, long &val)
bool FindOption (char c, gString &sRes)
bool FindOption (char *s, gString &sRes)
bool FindOptionOccurr (char *s, short &nRepeats)
bool FindOptionOccurr (char *s, bool &b1)
bool FindOptionOccurr (char *s, bool &b1, bool &b2)
virtual t_ucharToString (t_uchar *uBuf)
virtual bool SaveGuts (FILE *f)
virtual bool RestoreGuts (FILE *f)
virtual void Show (bool doShowAll=true)

Public Attributes

gString prog
gList env
gList param
gList opt
gList errors
short nParamDashWordSimple

Protected Member Functions

bool thisProgramName ()
bool thisAddOneParam (t_uint16 paramStart, char *sParam, gList &resL)
bool thisBuildInternParam (gList &paramIn, char *strSepSplit)
bool thisProcessParamElem (gParam &aParam, gParamElem &paramElem)
bool thisProcessParamElem (gParam &aParam, gParamElem &paramElem, bool &isDashWordSimple)
unsigned thisFindParamFromChr (t_uchar inChr, unsigned nParams, gParamElem *intParams)
unsigned thisFindParamFromStr (char *s, unsigned nParams, gParamElem *intParams, bool &doMatch, unsigned &possibleParamIdx)
bool thisFillParamFromChr (t_uchar inChr, unsigned nParams, gParamElem *intParams, gParamVal &paramVal)
bool thisFillParamFromStr (char *s, unsigned paramRef, unsigned nParams, gParamElem *intParams, gParamVal &paramVal)
int thisFlushAll (gList &inputL, gList &paramIn, unsigned nParams, gParamElem *intParams, gList &resArgL, gList &resOptL, gList &resErrL)

Protected Attributes

gParamEleminternParams
unsigned keepPos

Constructor & Destructor Documentation

gArg::gArg char **  argv,
char **  envp = nil
 

Definition at line 421 of file garg.cpp.

gArg::~gArg  )  [virtual]
 

Definition at line 444 of file garg.cpp.


Member Function Documentation

int gArg::AddParams t_uint16  paramStart,
char *  s
 

Definition at line 456 of file garg.cpp.

bool gArg::FindOption char *  s,
gString sRes
 

Definition at line 564 of file garg.cpp.

bool gArg::FindOption char  c,
gString sRes
 

Definition at line 554 of file garg.cpp.

bool gArg::FindOption char *  s,
long &  val
 

Definition at line 544 of file garg.cpp.

bool gArg::FindOption char *  s,
int &  val
 

Definition at line 533 of file garg.cpp.

bool gArg::FindOption char *  s  ) 
 

Definition at line 527 of file garg.cpp.

bool gArg::FindOption char  c  ) 
 

Definition at line 508 of file garg.cpp.

Referenced by FindOption(), and FindOptionOccurr().

bool gArg::FindOptionOccurr char *  s,
bool &  b1,
bool &  b2
 

Definition at line 588 of file garg.cpp.

bool gArg::FindOptionOccurr char *  s,
bool &  b1
 

Definition at line 582 of file garg.cpp.

bool gArg::FindOptionOccurr char *  s,
short &  nRepeats
 

Definition at line 573 of file garg.cpp.

Referenced by FindOptionOccurr().

int gArg::FlushParams  ) 
 

Definition at line 472 of file garg.cpp.

gParamVal * gArg::GetOptionPtr unsigned  idx  ) 
 

Definition at line 449 of file garg.cpp.

Referenced by FindOption().

bool gArg::NoArg  )  [inline]
 

Definition at line 214 of file garg.h.

unsigned gArg::NumberParams  )  [inline]
 

Definition at line 201 of file garg.h.

Referenced by FlushParams(), and Show().

char* gArg::Program  )  [inline]
 

Definition at line 204 of file garg.h.

virtual bool gArg::RestoreGuts FILE *  f  )  [inline, virtual]
 

Reimplemented from gList.

Definition at line 230 of file garg.h.

virtual bool gArg::SaveGuts FILE *  f  )  [inline, virtual]
 

Reimplemented from gList.

Definition at line 229 of file garg.h.

void gArg::Show bool  doShowAll = true  )  [virtual]
 

Reimplemented from gList.

Definition at line 1089 of file garg.cpp.

bool gArg::thisAddOneParam t_uint16  paramStart,
char *  sParam,
gList resL
[protected]
 

Definition at line 611 of file garg.cpp.

Referenced by AddParams().

bool gArg::thisBuildInternParam gList paramIn,
char *  strSepSplit
[protected]
 

Definition at line 622 of file garg.cpp.

Referenced by FlushParams().

bool gArg::thisFillParamFromChr t_uchar  inChr,
unsigned  nParams,
gParamElem intParams,
gParamVal paramVal
[protected]
 

Definition at line 804 of file garg.cpp.

Referenced by thisFlushAll().

bool gArg::thisFillParamFromStr char *  s,
unsigned  paramRef,
unsigned  nParams,
gParamElem intParams,
gParamVal paramVal
[protected]
 

Definition at line 822 of file garg.cpp.

Referenced by thisFlushAll().

unsigned gArg::thisFindParamFromChr t_uchar  inChr,
unsigned  nParams,
gParamElem intParams
[protected]
 

Definition at line 735 of file garg.cpp.

Referenced by thisFillParamFromChr(), and thisFlushAll().

unsigned gArg::thisFindParamFromStr char *  s,
unsigned  nParams,
gParamElem intParams,
bool &  doMatch,
unsigned &  possibleParamIdx
[protected]
 

Definition at line 751 of file garg.cpp.

Referenced by thisFlushAll().

int gArg::thisFlushAll gList inputL,
gList paramIn,
unsigned  nParams,
gParamElem intParams,
gList resArgL,
gList resOptL,
gList resErrL
[protected]
 

Definition at line 840 of file garg.cpp.

Referenced by FlushParams().

bool gArg::thisProcessParamElem gParam aParam,
gParamElem paramElem,
bool &  isDashWordSimple
[protected]
 

Definition at line 643 of file garg.cpp.

bool gArg::thisProcessParamElem gParam aParam,
gParamElem paramElem
[protected]
 

Referenced by thisBuildInternParam().

bool gArg::thisProgramName  )  [protected]
 

Definition at line 604 of file garg.cpp.

Referenced by gArg().

t_uchar * gArg::ToString t_uchar uBuf  )  [virtual]
 

Reimplemented from gList.

Definition at line 599 of file garg.cpp.


Member Data Documentation

gList gArg::env
 

Definition at line 194 of file garg.h.

Referenced by gArg().

gList gArg::errors
 

Definition at line 197 of file garg.h.

Referenced by FlushParams().

gParamElem* gArg::internParams [protected]
 

Definition at line 236 of file garg.h.

Referenced by FlushParams(), Show(), thisBuildInternParam(), and ~gArg().

unsigned gArg::keepPos [protected]
 

Definition at line 237 of file garg.h.

Referenced by FindOption(), and FindOptionOccurr().

short gArg::nParamDashWordSimple
 

Definition at line 198 of file garg.h.

Referenced by thisBuildInternParam(), and thisFlushAll().

gList gArg::opt
 

Definition at line 196 of file garg.h.

Referenced by FindOption(), FindOptionOccurr(), FlushParams(), and GetOptionPtr().

gList gArg::param
 

Definition at line 195 of file garg.h.

Referenced by AddParams(), FlushParams(), and NumberParams().

gString gArg::prog
 

Definition at line 193 of file garg.h.

Referenced by gArg(), and thisProgramName().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:02 2007 for xpfweb_v2x lib by  doxygen 1.4.2