Isle
|
[AI] Specialized command line parser for the configuration application. More...
#include <ConfigCommandLineInfo.h>
Public Member Functions | |
CConfigCommandLineInfo () | |
[AI] Constructor. More... | |
void | ParseParam (LPCSTR pszParam, BOOL bFlag, BOOL bLast) override |
[AI] Overridden command line parameter parser. More... | |
[AI] Specialized command line parser for the configuration application.
This class extends CCommandLineInfo to provide custom parsing logic for command line parameters relevant to the configuration dialog of the LEGO Island configuration utility. In particular, it supports a 'config' switch, which triggers the configuration dialog to be shown.
When the 'config' flag is present in the command line arguments, the internal configuration state (currentConfigApp->m_run_config_dialog) is updated to show the configuration dialog at startup. [AI]
Definition at line 24 of file ConfigCommandLineInfo.h.
CConfigCommandLineInfo::CConfigCommandLineInfo | ( | ) |
[AI] Constructor.
Initializes the command line info object and ensures that the configuration dialog is not requested by default.
The m_run_config_dialog member in the global configuration application singleton is set to FALSE. [AI]
Definition at line 9 of file ConfigCommandLineInfo.cpp.
[AI] Overridden command line parameter parser.
For each parameter, this checks if it is the 'config' flag (case-insensitive). If so, it sets the run_config_dialog member on the global config app to TRUE, so that the configuration dialog will be invoked on application start.
pszParam | The command line parameter. [AI] |
bFlag | TRUE if the parameter is a switch/flag (starts with '-' or '/'), FALSE otherwise. [AI] |
bLast | TRUE if this is the last parameter in the command line. [AI] [AI] |
Definition at line 15 of file ConfigCommandLineInfo.cpp.