Salome HOME
Merge from V6_main 13/12/2012
[samples/component.git] / src / SIGNALSComponent / SIGNALSComponent_Impl.cxx
index 099293e6c4a0ef4e506664cd2b054914e292d51d..1caa05a239c19bf3f81df0e966d99217d6658fe6 100755 (executable)
@@ -33,6 +33,7 @@
 
 //#include "utilities.h"
 #include "SIGNALSComponent_Impl.hxx"
+#include "COMPONENT_version.h"
 
 using namespace std;
 
@@ -60,6 +61,15 @@ SIGNALSComponent_Impl::~SIGNALSComponent_Impl()
 {
 }
 
+char* SIGNALSComponent_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+  return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+  return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
 CORBA::Long SIGNALSComponent_Impl::SIGSEGVfunc() {
   beginService( " SIGNALSComponent_Impl::SIGSEGVfunc" );
   cout << pthread_self() << "SIGNALSComponent_Impl::SIGSEGVfunc" << endl ;