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/SyncGenerator.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project/SyncGenerator.cpp') diff --git a/Project/SyncGenerator.cpp b/Project/SyncGenerator.cpp index 463c56d..c20bff1 100644 --- a/Project/SyncGenerator.cpp +++ b/Project/SyncGenerator.cpp @@ -135,3 +135,10 @@ void SyncGenerator::SetNominalVoltage(std::vector nominalVoltage, std::v m_electricalData.nominalVoltageUnit = nominalVoltageUnit[0]; } } + +Element* SyncGenerator::GetCopy() +{ + SyncGenerator* copy = new SyncGenerator(); + *copy = *this; + return copy; +} -- cgit