17 #include <QtCore/QString> 18 #include <QtCore/QStringList> 19 #include <QtCore/QHash> 34 Configurer(
const QString &systemConfig,
const QString &modelConfig);
44 bool isEnabled(
const QString &deviceName)
const;
47 QStringList
ports()
const;
58 void configure(
const QString &portName,
const QString &deviceName);
66 QHash<QString, QString> attributes;
67 QHash<QString, QHash<QString, QString>> portSpecificAttributes;
68 bool isOptional =
false;
74 QHash<QString, QString> attributes;
77 struct ModelConfigurationElement {
80 QHash<QString, QString> attributes;
83 struct AdditionalModelConfigurationElement {
85 QHash<QString, QString> attributes;
88 void parseDeviceClasses(
const QDomElement &element);
89 void parseDevicePorts(
const QDomElement &element);
90 void parseDeviceTypes(
const QDomElement &element);
91 void parseInitScript(
const QDomElement &element);
92 void parseAdditionalConfigurations(
const QDomElement &element);
93 void parseModelConfig(
const QDomElement &element);
95 QStringList mInitScripts;
98 QHash<QString, Device> mDevices;
101 QHash<QString, DeviceType> mDeviceTypes;
104 QHash<QString, Device> mAdditionalConfiguration;
107 QHash<QString, ModelConfigurationElement> mModelConfiguration;
110 QHash<QString, AdditionalModelConfigurationElement> mAdditionalModelConfiguration;
Definition: analogSensor.h:23
static const int port
Definition: trikCommunicatorTest.cpp:24