Commit 5c59130d authored by Micha Mueller's avatar Micha Mueller
Browse files

Update pluginGenerator for copy constr and assignment operator

parent bbf9499c
......@@ -27,6 +27,14 @@ public:
* Initialize plugin specific attributes
*/
}
${PLUGIN_NAME}SensorBase(const ${PLUGIN_NAME}SensorBase& other) :
SensorBase(other) {
/*
* TODO
* Copy construct plugin specific attributes
*/
}
virtual ~${PLUGIN_NAME}SensorBase() {
/*
......@@ -34,6 +42,16 @@ public:
* If necessary, deconstruct plugin specific attributes
*/
}
${PLUGIN_NAME}SensorBase& operator=(const ${PLUGIN_NAME}SensorBase& other) {
SensorBase::operator=(other);
/*
* TODO
* Implement assignment operator for plugin specific attributes
*/
return *this;
}
/*
* TODO
......
......@@ -21,6 +21,15 @@ ${PLUGIN_NAME}SensorGroup::${PLUGIN_NAME}SensorGroup(const std::string& name) :
*/
}
${PLUGIN_NAME}SensorGroup::${PLUGIN_NAME}SensorGroup(const ${PLUGIN_NAME}SensorGroup& other) :
SensorGroupTemplate(other) {
/*
* TODO
* Copy construct attributes
*/
}
${PLUGIN_NAME}SensorGroup::~${PLUGIN_NAME}SensorGroup() {
/*
* TODO
......@@ -28,6 +37,16 @@ ${PLUGIN_NAME}SensorGroup::~${PLUGIN_NAME}SensorGroup() {
*/
}
${PLUGIN_NAME}SensorGroup& ${PLUGIN_NAME}SensorGroup::operator=(const ${PLUGIN_NAME}SensorGroup& other) {
SensorGroupTemplate::operator=(other);
/*
* TODO
* Implement assignment operator
*/
return *this;
}
void ${PLUGIN_NAME}SensorGroup::start() {
if (_keepRunning) {
//we have been started already
......
......@@ -18,7 +18,9 @@ cat << EOF > ${PLUGIN_NAME}SensorGroup.h
class ${PLUGIN_NAME}SensorGroup : public SensorGroupTemplate<${PLUGIN_NAME}SensorBase> {
public:
${PLUGIN_NAME}SensorGroup(const std::string& name);
${PLUGIN_NAME}SensorGroup(const ${PLUGIN_NAME}SensorGroup& other);
virtual ~${PLUGIN_NAME}SensorGroup();
${PLUGIN_NAME}SensorGroup& operator=(const ${PLUGIN_NAME}SensorGroup& other);
void init(boost::asio::io_service& io) override;
void start() override;
......
Markdown is supported
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