33 #include <QCommandLineParser> 45 class Meas:
public QObject {
51 enum CommandLineParseResult {
52 CommandLineTaskPlanned,
55 CommandLineVersionRequested,
56 CommandLineHelpRequested,
57 CommandLineQueryRequested
60 Meas(QObject *parent = 0) : QObject(parent), m_id(
""), m_param(
""), m_measurementModule(
""), m_measurementsN(0), m_oscilloscopeModule(
""), m_oscilloscopeDevice(
""), m_oscilloscopeConfig(
""), m_chardeviceModule(
""), m_chardeviceDevice(
""), m_chardeviceConfig(
""), m_measurement(
nullptr), m_oscilloscope(
nullptr), m_chardevice(
nullptr) {}
83 QString m_measurementModule;
84 size_t m_measurementsN;
86 QString m_oscilloscopeModule;
87 QString m_oscilloscopeDevice;
88 QString m_oscilloscopeConfig;
90 QString m_chardeviceModule;
91 QString m_chardeviceDevice;
92 QString m_chardeviceConfig;
bool loadOscilloscopeModule()
Load the specified oscilloscope module.
Definition: meas.cpp:286
Character device QT plugin interface.
Definition: chardevice.h:42
void run()
Load and configure all the modules and run the measurement scenario.
Definition: meas.cpp:796
Measurement scenario QT plugin interface.
Definition: measurement.h:43
CommandLineParseResult parseCommandLineParams(QCommandLineParser &parser)
Parse parameters from the command line and configuration files and plan tasks for event loop accordin...
Definition: meas.cpp:48
Measurement scenario plugin interface for use e.g. in meas.
Character device plugin interface for use e.g. in meas.
Oscilloscope plugin interface for use e.g. in meas.
bool loadChardeviceModule()
Load the specified character device module.
Definition: meas.cpp:320
bool initConfigOscilloscope()
Initialize and configure loaded oscilloscope from given config file.
Definition: meas.cpp:354
Oscilloscope QT plugin interface.
Definition: oscilloscope.h:42
Class providing text-based UI front-end to Measurement, Oscilloscope and CharDevice plug-in modules.
Definition: meas.h:45
bool initConfigChardevice()
Initialize and configure loaded character device module from given config file.
Definition: meas.cpp:718
void queryPlugins()
Query and print available plugins.
Definition: meas.cpp:157
bool loadMeasurementModule()
Load the specified measurement scenario module.
Definition: meas.cpp:252