summaryrefslogtreecommitdiffstats
path: root/Project/SyncMotor.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-12-29 02:32:50 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-12-29 02:32:50 -0200
commitd792fcf7b2a5862ac86ee69aa86021b5637ca8ee (patch)
treec00bb1d27666ee7d42839efbd420369b2a0d24e3 /Project/SyncMotor.cpp
parentfb9de1b7935376897f1c93676ab1faeb1ea25f25 (diff)
downloadPSP.git-d792fcf7b2a5862ac86ee69aa86021b5637ca8ee.tar.gz
PSP.git-d792fcf7b2a5862ac86ee69aa86021b5637ca8ee.tar.xz
PSP.git-d792fcf7b2a5862ac86ee69aa86021b5637ca8ee.zip
Copy paste implemented
Some bugs on the text
Diffstat (limited to 'Project/SyncMotor.cpp')
-rw-r--r--Project/SyncMotor.cpp7
1 files changed, 7 insertions, 0 deletions
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;
+}