Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
CCmdLineParser Class Reference

#include <cmdlineparser.h>

Classes

struct  OptionDetail
 

Public Member Functions

HRESULT AddOption (const char *pszName, int has_arg, std::string *pStrResult)
 
HRESULT AddNonOption (std::string *pStrResult)
 
HRESULT ParseCommandLine (int argc, char **argv, int startindex, bool *fParseError)
 

Private Member Functions

const option * GenerateOptions ()
 

Private Attributes

std::vector< option > _options
 
std::vector< std::string * > _namelessArgs
 
std::vector< OptionDetail_listOptionDetails
 

Detailed Description

Definition at line 23 of file cmdlineparser.h.

Member Function Documentation

HRESULT CCmdLineParser::AddNonOption ( std::string *  pStrResult)

Definition at line 71 of file cmdlineparser.cpp.

HRESULT CCmdLineParser::AddOption ( const char *  pszName,
int  has_arg,
std::string *  pStrResult 
)

Definition at line 50 of file cmdlineparser.cpp.

const option * CCmdLineParser::GenerateOptions ( )
private

Definition at line 24 of file cmdlineparser.cpp.

HRESULT CCmdLineParser::ParseCommandLine ( int  argc,
char **  argv,
int  startindex,
bool *  fParseError 
)

Definition at line 78 of file cmdlineparser.cpp.

Member Data Documentation

std::vector<OptionDetail> CCmdLineParser::_listOptionDetails
private

Definition at line 39 of file cmdlineparser.h.

std::vector<std::string*> CCmdLineParser::_namelessArgs
private

Definition at line 29 of file cmdlineparser.h.

std::vector<option> CCmdLineParser::_options
private

Definition at line 27 of file cmdlineparser.h.


The documentation for this class was generated from the following files: