Commit 4d50efd6 authored by Micha Mueller's avatar Micha Mueller
Browse files

Add printConfig methods to generator scripts

parent ebbc2e42
......@@ -40,4 +40,13 @@ void ${PLUGIN_NAME}Configurator::sensorGroup(${PLUGIN_NAME}SensorGroup& s, CFG_V
}
}
void ${PLUGIN_NAME}Configurator::printConfiguratorConfig(LOG_LEVEL ll) {
/*
* TODO
* Log attributes here for debug reasons or delete this method if there are
* not attributes to log.
*/
LOG_VAR(ll) << " NumSpacesAsIndention: " << 2;
}
EOF
......@@ -24,6 +24,8 @@ protected:
/* Overwritten from ConfiguratorTemplate */
void sensorBase(${PLUGIN_NAME}SensorBase& s, CFG_VAL config) override;
void sensorGroup(${PLUGIN_NAME}SensorGroup& s, CFG_VAL config) override;
void printConfiguratorConfig(LOG_LEVEL ll) override;
};
extern "C" ConfiguratorInterface* create() {
......
......@@ -57,6 +57,14 @@ public:
* TODO
* Getters and Setters for plugin specific attributes
*/
void printConfig(LOG_LEVEL ll, LOGGER& lg) {
/*
* TODO
* Log attributes here for debug reasons
*/
LOG_VAR(ll) << " NumSpacesAsIndention: " << 5;
}
protected:
/*
......
......@@ -115,4 +115,12 @@ void ${PLUGIN_NAME}SensorGroup::readAsync() {
}
_pendingTasks--;
}
void ${PLUGIN_NAME}SensorGroup::printConfig(LOG_LEVEL ll) {
/*
* TODO
* Log attributes here for debug reasons
*/
LOG_VAR(ll) << " NumSpacesAsIndention: " << 3;
}
EOF
......@@ -30,6 +30,8 @@ public:
* TODO
* Add getter and setters for group attributes if required
*/
void printConfig(LOG_LEVEL ll) override;
private:
void read() override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment