mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-26 21:40:33 +05:00
0021478: EDF 2083 ALL: Write the version of Salome used to create the study in the hdf file
This commit is contained in:
parent
548c1dbe01
commit
72d471b321
@ -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
|
||||
//=====================================================================================
|
||||
|
@ -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 //
|
||||
//-----------------------------------------------------------------------//
|
||||
|
@ -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 = \
|
||||
|
Loading…
Reference in New Issue
Block a user