|
ORE Studio 0.0.4
|
Encapsulates Qt command line parsing for the application. More...
#include <CommandLineParser.hpp>

Public Member Functions | |
| CommandLineParser () | |
| Construct the parser and configure all options. | |
| void | process (const QCoreApplication &app) |
| Process command line arguments. | |
| std::optional< logging::logging_options > | loggingOptions () const |
| Get logging configuration based on parsed options. | |
| bool | isLoggingEnabled () const |
| Check if logging is enabled. | |
| QString | instanceName () const |
| Get the instance name for identifying this application instance. | |
| QColor | instanceColor () const |
| Get the instance color for the title bar. | |
| std::string | httpBaseUrl () const |
| Get the HTTP base URL for the compute service. | |
Encapsulates Qt command line parsing for the application.
Provides a clean interface for parsing command line options and extracting configuration values.
| void process | ( | const QCoreApplication & | app | ) |
Process command line arguments.
| app | The Qt application instance |
| std::optional< logging::logging_options > loggingOptions | ( | ) | const |
Get logging configuration based on parsed options.
Returns std::nullopt if –log-enabled is not set, which disables logging.
| QString instanceName | ( | ) | const |
Get the instance name for identifying this application instance.
Used when running multiple instances for testing or debugging. Returns empty string if not specified.
| QColor instanceColor | ( | ) | const |
Get the instance color for the title bar.
Returns the color specified via –instance-color as a QColor. Returns an invalid color (QColor()) if not specified.
| std::string httpBaseUrl | ( | ) | const |
Get the HTTP base URL for the compute service.
Returns empty string if not specified on the command line.