|
QGroundControl
Ground Control Station for MAVLink Drones
|
Classes | |
| struct | CommandLineParseResult |
| Result of parsing command-line arguments. More... | |
Enumerations | |
| enum class | AppMode { Gui , BootTest } |
| Application execution mode. More... | |
Functions | |
| static QStringList | normalizeArgs (const QStringList &args) |
| Normalizes command-line arguments Converts colon-separated syntax (–option:value) to standard format (–option value) and handles special cases like –unittest without a value. | |
| CommandLineParseResult | parseCommandLine () |
| Parse command-line arguments (requires existing QCoreApplication) | |
| CommandLineParseResult | parse (int argc, char *argv[]) |
| Parse command-line arguments with automatic QCoreApplication management. | |
| std::optional< int > | handleParseResult (const CommandLineParseResult &result) |
| Handle early exit conditions (help, version, error) | |
| AppMode | determineAppMode (const CommandLineParseResult &args) |
| Determine the application mode from parsed arguments. | |
|
strong |
Application execution mode.
| Enumerator | |
|---|---|
| Gui | Normal GUI application. |
| BootTest | Initialize and exit (for CI validation) |
Definition at line 78 of file QGCCommandLineParser.h.
| AppMode QGCCommandLineParser::determineAppMode | ( | const CommandLineParseResult & | args | ) |
Determine the application mode from parsed arguments.
| args | Parsed command line arguments |
Definition at line 441 of file QGCCommandLineParser.cc.
References determineAppMode(), QGCCommandLineParser::CommandLineParseResult::listTests, QGCCommandLineParser::CommandLineParseResult::runningUnitTests, and QGCCommandLineParser::CommandLineParseResult::simpleBootTest.
Referenced by determineAppMode(), and main().
| std::optional< int > QGCCommandLineParser::handleParseResult | ( | const CommandLineParseResult & | result | ) |
Handle early exit conditions (help, version, error)
| result | The parse result to check |
Definition at line 424 of file QGCCommandLineParser.cc.
References QGCCommandLineParser::CommandLineParseResult::errorString, handleParseResult(), and QGCCommandLineParser::CommandLineParseResult::statusCode.
Referenced by handleParseResult(), and main().
|
static |
Normalizes command-line arguments Converts colon-separated syntax (–option:value) to standard format (–option value) and handles special cases like –unittest without a value.
Definition at line 62 of file QGCCommandLineParser.cc.
References normalizeArgs().
Referenced by normalizeArgs(), and parseCommandLine().
| CommandLineParseResult QGCCommandLineParser::parse | ( | int | argc, |
| char * | argv[] | ||
| ) |
Parse command-line arguments with automatic QCoreApplication management.
Definition at line 415 of file QGCCommandLineParser.cc.
References parse(), and parseCommandLine().
| CommandLineParseResult QGCCommandLineParser::parseCommandLine | ( | ) |
Parse command-line arguments (requires existing QCoreApplication)
Definition at line 103 of file QGCCommandLineParser.cc.
References normalizeArgs(), parseCommandLine(), and QGCCommandLineParser::CommandLineParseResult::parser.
Referenced by parse(), and parseCommandLine().