My Project
|
command line parameters. More...
#include <CommandLineParams.h>
Public Member Functions | |
CCommandLineParams (const char *lpCmdLine) | |
const char * | GetAppCommandLine () |
get string specifying the command line for the application, excluding the program name. More... | |
const char * | GetAppCommandLineByParam (const char *pParam, const char *defaultValue) |
return a specified parameter value in the command line of the application. More... | |
void | SetAppCommandLine (const char *pCommandLine) |
set string specifying the command line for the application, excluding the program name. More... | |
command line parameters.
const char * CCommandLineParams::GetAppCommandLine | ( | ) |
get string specifying the command line for the application, excluding the program name.
const char * CCommandLineParams::GetAppCommandLineByParam | ( | const char * | pParam, |
const char * | defaultValue | ||
) |
return a specified parameter value in the command line of the application.
If the parameter does not exist, the return value is NULL.
pParam | key to get |
defaultValue | if the key does not exist, this value will be added and returned. This can be NULL. |
void CCommandLineParams::SetAppCommandLine | ( | const char * | pCommandLine | ) |
set string specifying the command line for the application, excluding the program name.
calling this function multiple times with different command line is permitted. The latter settings will merge and override the previous ones. such as key="value" key2="value2"
extract parameters