Salome HOME
Merge from V6_main 13/12/2012
[samples/component.git] / src / AdditionComponent / Addition_Adder_Impl.cxx
index 052ab4850ecc1580ef59f30474ec75c84819262f..4c89ede85786ed8a1652f9fcc96204fa4cb58d08 100644 (file)
@@ -38,6 +38,7 @@
 #include "SALOME_LifeCycleCORBA.hxx"
 
 #include "Addition_Adder_Impl.hxx"
+#include "COMPONENT_version.h"
 
 using namespace std;
 
@@ -65,6 +66,15 @@ Adder_Impl::Adder_Impl() {
   LastAddition = 0 ;
 }
 
+char* Adder_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+  return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+  return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
 Adder_Impl::~Adder_Impl() {
   beginService( "Adder_Impl::~Adder_Impl" );
   endService( "Adder_Impl::~Adder_Impl" );