Arguments Class Reference
List of all members.
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 |
Friends |
std::ostream & | operator<< (std::ostream &os, const Arguments &argArguments) |
Constructor & Destructor Documentation
Arguments::Arguments |
( |
int |
argc = 0 , |
|
|
char ** |
argv = NULL | |
|
) |
| | [inline] |
Construct a new Arguments object
- Parameters:
-
| argc | Argument of main (console) |
| argv | Argument of main (console) |
Arguments::~Arguments |
( |
|
) |
[inline] |
Member Function Documentation
const std::string& Arguments::GetApplicationFilename |
( |
|
) |
const [inline] |
Get the application filename
- Returns:
- The application filename
const std::string Arguments::GetOption |
( |
const std::string & |
strOptionName |
) |
const [inline] |
Get an option
- Parameters:
-
| strOptionName | Name of the choosen option |
- Returns:
- Option
const bool Arguments::HasOption |
( |
const std::string & |
strOptionName |
) |
const [inline] |
Determine if the given option currently exists
- Parameters:
-
| strOptionName | Option name |
- Returns:
- boolean Value that is true, if there is a option, otherwise false
void Arguments::SetApplicationFilename |
( |
const std::string & |
strApplicationFilename |
) |
[inline] |
Set the apllication filename
- Parameters:
-
| strApplicationFilename | Filename |
void Arguments::SetOption |
( |
const std::string & |
strOptionName, |
|
|
const std::string & |
strOptionValue | |
|
) |
| | [inline] |
Set an option
- Parameters:
-
| strOptionName | Option name |
| strOptionValue | Value of the option |
The documentation for this class was generated from the following file: