QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCCommandLineParser::CommandLineParseResult Struct Reference

Result of parsing command-line arguments. More...

#include <QGCCommandLineParser.h>

Public Types

enum class  Status { Ok , Error , VersionRequested , HelpRequested }

Public Attributes

enum QGCCommandLineParser::CommandLineParseResult::Status statusCode = Status::Ok
std::unique_ptr< QCommandLineParser > parser
std::optional< QString > errorString
QString helpText
QString versionText
QStringList positional
QStringList unknownOptions
std::optional< quint32 > systemId
bool clearSettingsOptions = false
bool clearCache = false
std::optional< QString > loggingOptions
bool logOutput = false
bool simpleBootTest = false
bool runningUnitTests = false
QStringList unitTests
bool stressUnitTests = false
uint stressUnitTestsCount = 0
std::optional< QString > unitTestOutput
 Output file for test results (JUnit XML).
uint unitTestShardIndex = 0
 1-based shard of the test's functions to run (0 = all functions)
uint unitTestShardCount = 0
 Number of shards the test's functions are split into.
std::optional< QString > labelFilter
 Filter tests by label (comma-separated).
bool listTests = false
 List available tests and exit.
bool onscreen = false
 Show test windows on screen (skip offscreen override).
bool fakeMobile = false
bool allowMultiple = false
bool useSwRast = false
 Windows/macOS: Force software rendering.
bool quietWindowsAsserts = false
 Windows only: Disable assert dialogs.

Detailed Description

Result of parsing command-line arguments.

Contains all parsed options and status information. All fields are always present for ABI stability, but test-related command-line options are only available in QGC_UNITTEST_BUILD.

Definition at line 16 of file QGCCommandLineParser.h.

Member Enumeration Documentation

◆ Status

Enumerator
Ok 
Error 
VersionRequested 
HelpRequested 

Definition at line 18 of file QGCCommandLineParser.h.

Member Data Documentation

◆ allowMultiple

bool QGCCommandLineParser::CommandLineParseResult::allowMultiple = false

◆ clearCache

bool QGCCommandLineParser::CommandLineParseResult::clearCache = false

◆ clearSettingsOptions

bool QGCCommandLineParser::CommandLineParseResult::clearSettingsOptions = false

◆ errorString

std::optional<QString> QGCCommandLineParser::CommandLineParseResult::errorString

◆ fakeMobile

bool QGCCommandLineParser::CommandLineParseResult::fakeMobile = false

Definition at line 55 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ helpText

QString QGCCommandLineParser::CommandLineParseResult::helpText

Definition at line 28 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ labelFilter

std::optional<QString> QGCCommandLineParser::CommandLineParseResult::labelFilter

Filter tests by label (comma-separated).

Definition at line 50 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ listTests

bool QGCCommandLineParser::CommandLineParseResult::listTests = false

List available tests and exit.

Definition at line 51 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::determineAppMode(), Platform::initialize(), and QGCCommandLineParser::parseCommandLine().

◆ loggingOptions

std::optional<QString> QGCCommandLineParser::CommandLineParseResult::loggingOptions

◆ logOutput

bool QGCCommandLineParser::CommandLineParseResult::logOutput = false

Definition at line 39 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ onscreen

bool QGCCommandLineParser::CommandLineParseResult::onscreen = false

Show test windows on screen (skip offscreen override).

Definition at line 52 of file QGCCommandLineParser.h.

Referenced by Platform::initialize(), and QGCCommandLineParser::parseCommandLine().

◆ parser

std::unique_ptr<QCommandLineParser> QGCCommandLineParser::CommandLineParseResult::parser

Definition at line 25 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ positional

QStringList QGCCommandLineParser::CommandLineParseResult::positional

Definition at line 31 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ quietWindowsAsserts

bool QGCCommandLineParser::CommandLineParseResult::quietWindowsAsserts = false

Windows only: Disable assert dialogs.

Definition at line 60 of file QGCCommandLineParser.h.

Referenced by Platform::initialize(), and QGCCommandLineParser::parseCommandLine().

◆ runningUnitTests

bool QGCCommandLineParser::CommandLineParseResult::runningUnitTests = false

◆ simpleBootTest

bool QGCCommandLineParser::CommandLineParseResult::simpleBootTest = false

◆ statusCode

◆ stressUnitTests

bool QGCCommandLineParser::CommandLineParseResult::stressUnitTests = false

Definition at line 45 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ stressUnitTestsCount

uint QGCCommandLineParser::CommandLineParseResult::stressUnitTestsCount = 0

Definition at line 46 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ systemId

std::optional<quint32> QGCCommandLineParser::CommandLineParseResult::systemId

Definition at line 35 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ unitTestOutput

std::optional<QString> QGCCommandLineParser::CommandLineParseResult::unitTestOutput

Output file for test results (JUnit XML).

Definition at line 47 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ unitTests

QStringList QGCCommandLineParser::CommandLineParseResult::unitTests

◆ unitTestShardCount

uint QGCCommandLineParser::CommandLineParseResult::unitTestShardCount = 0

Number of shards the test's functions are split into.

Definition at line 49 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ unitTestShardIndex

uint QGCCommandLineParser::CommandLineParseResult::unitTestShardIndex = 0

1-based shard of the test's functions to run (0 = all functions)

Definition at line 48 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine(), and QGCApplication::QGCApplication().

◆ unknownOptions

QStringList QGCCommandLineParser::CommandLineParseResult::unknownOptions

Definition at line 32 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().

◆ useSwRast

bool QGCCommandLineParser::CommandLineParseResult::useSwRast = false

Windows/macOS: Force software rendering.

Definition at line 59 of file QGCCommandLineParser.h.

Referenced by Platform::initialize(), and QGCCommandLineParser::parseCommandLine().

◆ versionText

QString QGCCommandLineParser::CommandLineParseResult::versionText

Definition at line 29 of file QGCCommandLineParser.h.

Referenced by QGCCommandLineParser::parseCommandLine().


The documentation for this struct was generated from the following file: