#include <Arguments.h>
Public Member Functions | |
Arguments (int argc=0, char **argv=NULL) | |
~Arguments () | |
void | SetApplicationFilename (const std::string &strApplicationFilename) |
const std::string & | GetApplicationFilename () const |
const bool | HasOption (const std::string &strOptionName) const |
void | SetOption (const std::string &strOptionName, const std::string &strOptionValue) |
const std::string | GetOption (const std::string &strOptionName) const |
Arguments (int argc=0, char **argv=NULL) | |
~Arguments () | |
void | SetApplicationFilename (const std::string &strApplicationFilename) |
const std::string & | GetApplicationFilename () const |
const bool | HasOption (const std::string &strOptionName) const |
void | SetOption (const std::string &strOptionName, const std::string &strOptionValue) |
const std::string | GetOption (const std::string &strOptionName) const |
Private Attributes | |
std::string | m_strApplicationFilename |
std::map< std::string, std::string > | m_mapOptions |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Arguments &argArguments) |
std::ostream & | operator<< (std::ostream &os, const Arguments &argArguments) |
Arguments::Arguments | ( | int | argc = 0 , |
|
char ** | argv = NULL | |||
) | [inline] |
Constructs a new Arguments object argc argument from main argv arguments from main (console)
Arguments::~Arguments | ( | ) | [inline] |
Destroys the object
Arguments::Arguments | ( | int | argc = 0 , |
|
char ** | argv = NULL | |||
) | [inline] |
Constructs a new Arguments object argc argument from main argv arguments from main (console)
Arguments::~Arguments | ( | ) | [inline] |
Destroys the object
const std::string& Arguments::GetApplicationFilename | ( | ) | const [inline] |
Returns the application filename
const std::string& Arguments::GetApplicationFilename | ( | ) | const [inline] |
Returns the application filename
const std::string Arguments::GetOption | ( | const std::string & | strOptionName | ) | const [inline] |
Returns an option.
strOptionName | Name of the option |
const std::string Arguments::GetOption | ( | const std::string & | strOptionName | ) | const [inline] |
Returns an option.
strOptionName | Name of the option |
const bool Arguments::HasOption | ( | const std::string & | strOptionName | ) | const [inline] |
Determines if the given option exists strOptionName Option name
const bool Arguments::HasOption | ( | const std::string & | strOptionName | ) | const [inline] |
Determines if the given option exists strOptionName Option name
void Arguments::SetApplicationFilename | ( | const std::string & | strApplicationFilename | ) | [inline] |
Sets the application filename strApplicationFilename Filename
void Arguments::SetApplicationFilename | ( | const std::string & | strApplicationFilename | ) | [inline] |
Sets the application filename strApplicationFilename Filename
void Arguments::SetOption | ( | const std::string & | strOptionName, | |
const std::string & | strOptionValue | |||
) | [inline] |
Sets an option. strOptionName Option name strOptionValue Value of the option
void Arguments::SetOption | ( | const std::string & | strOptionName, | |
const std::string & | strOptionValue | |||
) | [inline] |
Sets an option. strOptionName Option name strOptionValue Value of the option
std::ostream& operator<< | ( | std::ostream & | os, | |
const Arguments & | argArguments | |||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Arguments & | argArguments | |||
) | [friend] |
std::map< std::string, std::string > Arguments::m_mapOptions [private] |
Options map
Filename