The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CCommandLine Class Reference

Collaboration diagram for CCommandLine:

List of all members.

Detailed Description

A class that parses the command line and can report on whether specified switches or arguments have been passed to a program.

Public Member Functions

 CCommandLine ()
 CCommandLine (const CCommandLine &rhs)
 ~CCommandLine ()
CCommandLineoperator= (const CCommandLine &rhs)
void AddSwitch (const _tstring &name)
void AddArgument (const _tstring &name)
bool Parse (DWORD argc, const char **argv, _tstring &error)
_tstring GetParsedCommandLine () const
bool IsSwitch (const _tstring &name) const
bool IsSet (const _tstring &name) const
const _tstringGetValueAsString (const _tstring &name) const
const _tstringGetOptionalValueAsString (const _tstring &name) const
const _tstringGetOptionalValueAsString (const _tstring &name, const _tstring &defaultValue) const


class  SwitchOrArgument

Constructor & Destructor Documentation

CCommandLine (  ) 

CCommandLine ( const CCommandLine rhs  ) 

~CCommandLine (  ) 

Member Function Documentation

CCommandLine& operator= ( const CCommandLine rhs  ) 

void AddSwitch ( const _tstring name  ) 

void AddArgument ( const _tstring name  ) 

bool Parse ( DWORD  argc,
const char **  argv,
_tstring error 

_tstring GetParsedCommandLine (  )  const

bool IsSwitch ( const _tstring name  )  const

bool IsSet ( const _tstring name  )  const

const _tstring & GetValueAsString ( const _tstring name  )  const

const _tstring & GetOptionalValueAsString ( const _tstring name  )  const

const _tstring & GetOptionalValueAsString ( const _tstring name,
const _tstring defaultValue 
) const

Generated on Sun Sep 12 19:08:23 2021 for The Server Framework - v7.4 by doxygen 1.5.3