diff options
Diffstat (limited to 'Project/Gain.cpp')
-rw-r--r-- | Project/Gain.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Project/Gain.cpp b/Project/Gain.cpp index d2106d7..d6dc7a2 100644 --- a/Project/Gain.cpp +++ b/Project/Gain.cpp @@ -173,3 +173,12 @@ bool Gain::Solve(double input, double timeStep) m_output = input * m_value; return true; } + +Element* Gain::GetCopy() +{ + Gain* copy = new Gain(m_elementID); + *copy = *this; + m_glStringValue = NULL; + SetValue(m_value); + return copy; +} |