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:28:43 +00:00
parent 3816b8e97c
commit c5698502cc
3 changed files with 19 additions and 1 deletions

View File

@ -109,7 +109,8 @@ libSMESHEngine_la_CPPFLAGS = \
-I$(srcdir)/../DriverCGNS \ -I$(srcdir)/../DriverCGNS \
-I$(srcdir)/../SMESH \ -I$(srcdir)/../SMESH \
-I$(srcdir)/../SMESHUtils \ -I$(srcdir)/../SMESHUtils \
-I$(top_builddir)/idl -I$(top_builddir)/idl \
-I$(top_builddir)
libSMESHEngine_la_LDFLAGS = \ libSMESHEngine_la_LDFLAGS = \
../../idl/libSalomeIDLSMESH.la \ ../../idl/libSalomeIDLSMESH.la \

View File

@ -65,6 +65,7 @@
#endif #endif
#include "SMESH_Gen_i.hxx" #include "SMESH_Gen_i.hxx"
#include "SMESH_version.h"
#include "SMDS_EdgePosition.hxx" #include "SMDS_EdgePosition.hxx"
#include "SMDS_FacePosition.hxx" #include "SMDS_FacePosition.hxx"
@ -4914,6 +4915,16 @@ int SMESH_Gen_i::GetCurrentStudyID()
return myCurrentStudy->_is_nil() || myCurrentStudy->_non_existent() ? -1 : myCurrentStudy->StudyId(); return myCurrentStudy->_is_nil() || myCurrentStudy->_non_existent() ? -1 : myCurrentStudy->StudyId();
} }
// Version information
char* SMESH_Gen_i::getVersion()
{
#if SMESH_DEVELOPMENT
return CORBA::string_dup(SMESH_VERSION_STR"dev");
#else
return CORBA::string_dup(SMESH_VERSION_STR);
#endif
}
//============================================================================= //=============================================================================
/*! /*!
* SMESHEngine_factory * SMESHEngine_factory

View File

@ -441,6 +441,12 @@ public:
return aResultSO._retn(); return aResultSO._retn();
} }
// ============
// Version information
// ============
virtual char* getVersion();
// ============ // ============
// Dump python // Dump python
// ============ // ============