]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0021478: EDF 2083 ALL: Write the version of Salome used to create the study in the...
authorvsr <vsr@opencascade.com>
Tue, 16 Oct 2012 08:31:12 +0000 (08:31 +0000)
committervsr <vsr@opencascade.com>
Tue, 16 Oct 2012 08:31:12 +0000 (08:31 +0000)
src/VISU_I/Makefile.am
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_Gen_i.hh

index eba2518d7035880c82cfac496c4938347cbc9bf5..17fbb12db5f3520746514b30861afee1a9116ca9 100644 (file)
@@ -133,7 +133,8 @@ libVISUEngineImpl_la_CPPFLAGS= \
        -I$(srcdir)/../CONVERTOR \
        -I$(srcdir)/../PIPELINE \
        -I$(srcdir)/../OBJECT \
-       -I$(top_builddir)/idl
+       -I$(top_builddir)/idl \
+       -I$(top_builddir)
 
 libVISUEngineImpl_la_LDFLAGS= \
        $(KERNEL_LDFLAGS) \
index 8c2223024eca0236484a2177ecf9c18fe6e71340..c93ba092feac2368eea34c552ac65a4be5b80f70 100644 (file)
@@ -25,6 +25,7 @@
 //  Author : Alexey PETROV
 //  Module : VISU
 
+#include "VISU_version.h"
 #include "VISU_Gen_i.hh"
 #include "VISU_Result_i.hh"
 #include "VISU_PrsObject_i.hh"
@@ -1876,4 +1877,14 @@ namespace VISU
 
     return aMarkerId;
   }
+
+  // Version information
+  char* VISU_Gen_i::getVersion()
+  {
+#if VISU_DEVELOPMENT
+    return CORBA::string_dup( VISU_VERSION_STR"dev" );
+#else
+    return CORBA::string_dup( VISU_VERSION_STR );
+#endif
+  }
 }
index 7513387d14f4d29e81c4d7c7fc84464479e8cad6..5d3f39d72f5db336dbb6b4b40ba95f99cbc13dcd 100644 (file)
@@ -394,6 +394,9 @@ namespace VISU
              CORBA::Long theObjectID,
              SALOMEDS::SObject_ptr theObject);
 
+
+    char* getVersion();
+
     virtual
     VISU::ColoredPrs3dCache_ptr
     GetColoredPrs3dCache(SALOMEDS::Study_ptr theStudy);