Isle
Loading...
Searching...
No Matches
CConfigCommandLineInfo Class Reference

[AI] Specialized command line parser for the configuration application. More...

#include <ConfigCommandLineInfo.h>

Inheritance diagram for CConfigCommandLineInfo:
Collaboration diagram for CConfigCommandLineInfo:

Public Member Functions

 CConfigCommandLineInfo ()
 [AI] Constructor. More...
 
void ParseParam (LPCSTR pszParam, BOOL bFlag, BOOL bLast) override
 [AI] Overridden command line parameter parser. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CConfigCommandLineInfo()

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.

Member Function Documentation

◆ ParseParam()

void CConfigCommandLineInfo::ParseParam ( LPCSTR  pszParam,
BOOL  bFlag,
BOOL  bLast 
)
override

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

Parameters
pszParamThe command line parameter. [AI]
bFlagTRUE if the parameter is a switch/flag (starts with '-' or '/'), FALSE otherwise. [AI]
bLastTRUE if this is the last parameter in the command line. [AI] [AI]

Definition at line 15 of file ConfigCommandLineInfo.cpp.


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