#include "CTBargv.hxx"
Public Methods | |
CTBargv () | |
CTBargv (int argc, char *argv[]) | |
~CTBargv () | |
int | Argc () const |
const char * | Argv (int i_ind) const |
bool | Locate (const char *c_opt, int i_npar=0) |
const char * | NextArg () |
void | CheckUnused () |
bool | CheckErrors () |
bool | CheckErrors (ostream &os) |
void | SetupStream (istrstream &istr) |
void | CheckStream (istrstream &istr) |
void | ToStream (ostream &os=cout) const |
const char * | operator[] (int i_ind) const |
Private Attributes | |
int | mi_argc |
char * | mc_args |
argdsc * | m_argv |
int | mi_curarg |
Static Private Attributes | |
const int | mi_error_conv = 0x0001 |
const int | mi_error_npar = 0x0002 |
const int | mi_error_unused = 0x0004 |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBargv &av) |
This class allows to process the C/C++ standart main
program argument list as a stream.
Definition at line 18 of file CTBargv.hxx.
|
Default constructor.
Definition at line 32 of file CTBargv.cxx. |
|
Constructor from argument list.
Definition at line 44 of file CTBargv.cxx. |
|
Destructor.
Definition at line 79 of file CTBargv.cxx. |
|
Returns argument count.
Definition at line 18 of file CTBargv.icc. |
|
Access argument i_ind.
Definition at line 26 of file CTBargv.icc. Referenced by operator[]().
|
|
Locate an option.
Locates the first remaining argument matching c_opt and returns Definition at line 94 of file CTBargv.cxx. |
|
Returns next argument.
Definition at line 137 of file CTBargv.cxx. Referenced by operator>>().
|
|
Ccheck for unused arguments.
Definition at line 154 of file CTBargv.cxx. |
|
Check for errors (returns
Definition at line 171 of file CTBargv.cxx. Referenced by CheckErrors().
|
|
Check for errors and print error messages to stream os.
Definition at line 184 of file CTBargv.cxx. |
|
Setup temporary stream.
Definition at line 210 of file CTBargv.cxx. Referenced by operator>>().
|
|
Check temporary stream.
Definition at line 221 of file CTBargv.cxx. Referenced by operator>>().
|
|
ostream insertion.
Definition at line 247 of file CTBargv.cxx. Referenced by operator<<().
|
|
Access argument i_ind.
Definition at line 34 of file CTBargv.icc. |
|
ostream insertion operator.
Definition at line 45 of file CTBargv.icc. |
|
Definition at line 56 of file CTBargv.hxx. |
|
Definition at line 57 of file CTBargv.hxx. |
|
Definition at line 58 of file CTBargv.hxx. |
|
Definition at line 60 of file CTBargv.hxx. |
|
Definition at line 61 of file CTBargv.hxx. |
|
Definition at line 62 of file CTBargv.hxx. |
|
Definition at line 63 of file CTBargv.hxx. |