Commit 606c86a6 authored by Michael Ott's avatar Michael Ott
Browse files

Add copy-constructor, copy-operator

parent 6702ad7f
......@@ -70,5 +70,4 @@ void s7plcConfigurator::printConfiguratorConfig(LOG_LEVEL ll) {
* Log attributes here for debug reasons or delete this method if there are
* not attributes to log.
*/
LOG_VAR(ll) << " NumSpacesAsIndention: " << 2;
}
......@@ -58,11 +58,10 @@ public:
}
s7plcSensorBase(const s7plcSensorBase& other) :
SensorBase(other) {
/*
* TODO
* Copy construct plugin specific attributes
*/
SensorBase(other),
_db(other._db),
_offset(other._offset),
_type(other._type) {
}
virtual ~s7plcSensorBase() {
......@@ -74,11 +73,10 @@ public:
s7plcSensorBase& operator=(const s7plcSensorBase& other) {
SensorBase::operator=(other);
/*
* TODO
* Implement assignment operator for plugin specific attributes
*/
_db = other._db;
_offset = other._offset;
_type = other._type;
return *this;
}
......
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