My Project
Public Member Functions | List of all members
ParaEngine::CCommandLineParams Class Reference

command line parameters. More...

#include <CommandLineParams.h>

Inheritance diagram for ParaEngine::CCommandLineParams:
ParaEngine::CParaEngineAppBase ParaEngine::CParaEngineApp ParaEngine::CParaEngineApp ParaEngine::CParaEngineApp

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...
 

Detailed Description

command line parameters.

Member Function Documentation

§ GetAppCommandLine()

const char * CCommandLineParams::GetAppCommandLine ( )

get string specifying the command line for the application, excluding the program name.

§ GetAppCommandLineByParam()

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.

Parameters
pParamkey to get
defaultValueif the key does not exist, this value will be added and returned. This can be NULL.

§ SetAppCommandLine()

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


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