Salome HOME
0021478: EDF 2083 ALL: Write the version of Salome used to create the study in the... V6_6_0a1 V6_6_0b1
authorvsr <vsr@opencascade.com>
Tue, 16 Oct 2012 08:47:52 +0000 (08:47 +0000)
committervsr <vsr@opencascade.com>
Tue, 16 Oct 2012 08:47:52 +0000 (08:47 +0000)
src/Sierpinsky/Makefile.am
src/Sierpinsky/SIERPINSKY_Gen_i.cxx
src/Sierpinsky/SIERPINSKY_Gen_i.hxx

index 3589c15d6c05cdfcf95bff21f4df8aa1039d2897..4a178e2acfdd08c78898fe39695b7cc218fa8877 100644 (file)
@@ -42,7 +42,8 @@ libSIERPINSKYEngine_la_CPPFLAGS = \
        $(MED_CXXFLAGS) \
        $(HDF5_INCLUDES) \
        $(BOOST_CPPFLAGS) \
-       -I$(top_builddir)/idl
+       -I$(top_builddir)/idl \
+       -I$(top_builddir)
 
 libSIERPINSKYEngine_la_LDFLAGS  = \
        ../../idl/libSalomeIDLSIERPINSKY.la \
index daf5c99f4fede577d6b260337dac776077e7d608..b4c318c55616e86687301dc42d27428b5d80280d 100644 (file)
@@ -23,7 +23,9 @@
 // Created : 13/07/05
 ///////////////////////////////////////////////////////////
 //
+
 #include "SIERPINSKY_Gen_i.hxx"
+#include "SIERPINSKY_version.h"
 #include <MED_Factory.hxx>
 #include <gd.h>
 
@@ -189,3 +191,13 @@ CORBA::Boolean SIERPINSKY_Gen_i::ExportToMED( const char* theFileName, CORBA::Do
 
   return true;
 }
+
+// Version information
+char* SIERPINSKY_Gen_i::getVersion()
+{
+#if SIERPINSKY_DEVELOPMENT
+  return CORBA::string_dup(SIERPINSKY_VERSION_STR"dev");
+#else
+  return CORBA::string_dup(SIERPINSKY_VERSION_STR);
+#endif
+}
index 9fa4d597c9eaf089aef15bef9ab593f280ca7b87..4c516fa17e76eb396796cff2e9b421288fe10f96 100644 (file)
@@ -56,6 +56,9 @@ public:
   // Destructor
   ~SIERPINSKY_Gen_i();
   
+  // Version information
+  virtual char* getVersion();
+
   // Initializes engine with three reference points
   void Init( CORBA::Double theX1, CORBA::Double theY1, 
              CORBA::Double theX2, CORBA::Double theY2,