0021478: EDF 2083 ALL: Write the version of Salome used to create the study in the hdf file

This commit is contained in:
vsr 2012-10-16 08:27:41 +00:00
parent 548c1dbe01
commit 72d471b321
3 changed files with 16 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include "GEOM_Gen_i.hh"
#include "GEOM_Object_i.hh"
#include "GEOM_version.h"
#include <set>
#include <sstream>
@ -2551,6 +2552,16 @@ char* GEOM_Gen_i::getObjectInfo(CORBA::Long studyId, const char* entry)
return ret;
}
// Version information
char* GEOM_Gen_i::getVersion()
{
#if GEOM_DEVELOPMENT
return CORBA::string_dup(GEOM_VERSION_STR"dev");
#else
return CORBA::string_dup(GEOM_VERSION_STR);
#endif
}
//=====================================================================================
// EXPORTED METHODS
//=====================================================================================

View File

@ -264,6 +264,9 @@ class GEOM_I_EXPORT GEOM_Gen_i: virtual public POA_GEOM::GEOM_Gen, virtual publi
virtual bool hasObjectInfo();
virtual char* getObjectInfo(CORBA::Long studyId, const char* entry);
// Version information
virtual char* getVersion();
//-----------------------------------------------------------------------//
// Internal methods //
//-----------------------------------------------------------------------//

View File

@ -81,7 +81,8 @@ libGEOMEngine_la_CPPFLAGS = \
-I$(srcdir)/../GEOMImpl \
-I$(srcdir)/../GEOMAlgo \
-I$(srcdir)/../GEOM \
-I$(top_builddir)/idl
-I$(top_builddir)/idl \
-I$(top_builddir)
libGEOMEngine_la_LDFLAGS = \