Salome HOME
Merge from V6_main 13/12/2012
[samples/component.git] / src / DivComponent / DivComponent.cxx
index e4e5f706104861b74039fec6d29d654ce48080ac..c49a63f0cf244123648f49a8db5691ef995f8486 100644 (file)
@@ -33,6 +33,7 @@
 
 //#include "utilities.h"
 #include "DivComponent.hxx"
+#include "COMPONENT_version.h"
 
 using namespace std;
 
@@ -58,6 +59,15 @@ DivComponentEngine::~DivComponentEngine()
 {
 }
 
+char* DivComponentEngine::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+  return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+  return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
 void DivComponentEngine::Div( double x , double y , double & z ) {
   beginService( " DivComponentEngine::Div" );
   z = x / y ;