OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Command line argument processing class, processes in the form: More...
#include <owl/cmdline.h>
Public Types | |
enum | TKind { Start , Name , Option , Value , Done } |
Public Member Functions | |
TCmdLine (const tstring &cmdLine) | |
~TCmdLine () | |
TKind | NextToken (bool removeCurrent=false) |
LPCTSTR | GetLine () const |
void | Reset () |
tstring | GetToken () const |
TKind | GetTokenKind () const |
Command line argument processing class, processes in the form:
<Name> | {-/}<Option>[{:=}<Value>] ...
owl::TCmdLine::TCmdLine | ( | const tstring & | cmdLine | ) |
Definition at line 17 of file cmdline.cpp.
owl::TCmdLine::~TCmdLine | ( | ) |
Definition at line 31 of file cmdline.cpp.
tstring owl::TCmdLine::GetToken | ( | ) | const |
Definition at line 94 of file cmdline.cpp.
|
inline |
TCmdLine::TKind owl::TCmdLine::NextToken | ( | bool | removeCurrent = false | ) |
Definition at line 36 of file cmdline.cpp.
References _T, _tcscpy, _tcscspn, _tcsspn, Done, Name, Option, owl::terminator, Value, and owl::whitespace.
void owl::TCmdLine::Reset | ( | ) |
Definition at line 24 of file cmdline.cpp.
References Start.