From d792fcf7b2a5862ac86ee69aa86021b5637ca8ee Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 29 Dec 2016 02:32:50 -0200 Subject: Copy paste implemented Some bugs on the text --- Project/SyncMotor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project/SyncMotor.cpp') diff --git a/Project/SyncMotor.cpp b/Project/SyncMotor.cpp index 2f9c3ce..13ea5e4 100644 --- a/Project/SyncMotor.cpp +++ b/Project/SyncMotor.cpp @@ -97,3 +97,10 @@ SyncMotorElectricalData SyncMotor::GetPUElectricalData(double systemPowerBase) return data; } + +Element* SyncMotor::GetCopy() +{ + SyncMotor* copy = new SyncMotor(); + *copy = *this; + return copy; +} -- cgit