mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
PAL18696 SMESH : version of MED export
+ /*! + * Return string representation of a MED file version comprising nbDigits + */ + char* GetVersionString(SMESH::MED_VERSION version, CORBA::Short nbDigits);
This commit is contained in:
parent
277a199f30
commit
8579e44356
@ -410,6 +410,11 @@ module SMESH
|
||||
void ExportMED( in string file, in boolean auto_groups )
|
||||
raises (SALOME::SALOME_Exception);
|
||||
|
||||
/*!
|
||||
* Return string representation of a MED file version comprising nbDigits
|
||||
*/
|
||||
string GetVersionString(in MED_VERSION version, in short nbDigits);
|
||||
|
||||
/*!
|
||||
* Export Mesh to DAT, UNV and STL Formats
|
||||
* (UNV supported version is I-DEAS 10)
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "SMESH_subMesh_i.hxx"
|
||||
|
||||
#include "DriverMED_R_SMESHDS_Mesh.h"
|
||||
#include "DriverMED_W_SMESHDS_Mesh.h"
|
||||
#include "SMDS_VolumeTool.hxx"
|
||||
#include "SMESHDS_Command.hxx"
|
||||
#include "SMESHDS_CommandType.hxx"
|
||||
@ -244,6 +245,19 @@ SMESH_Mesh_i::ImportMEDFile( const char* theFileName, const char* theMeshName )
|
||||
return ConvertDriverMEDReadStatus(status);
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
/*!
|
||||
* \brief Return string representation of a MED file version comprising nbDigits
|
||||
*/
|
||||
//================================================================================
|
||||
|
||||
char* SMESH_Mesh_i::GetVersionString(SMESH::MED_VERSION version, CORBA::Short nbDigits)
|
||||
{
|
||||
std::string ver = DriverMED_W_SMESHDS_Mesh::GetVersionString(MED::EVersion(version),
|
||||
nbDigits);
|
||||
return CORBA::string_dup( ver.c_str() );
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
* ImportUNVFile
|
||||
|
@ -176,6 +176,10 @@ public:
|
||||
* Consider maximum group name length stored in MED file.
|
||||
*/
|
||||
CORBA::Boolean HasDuplicatedGroupNamesMED();
|
||||
/*!
|
||||
* Return string representation of a MED file version comprising nbDigits
|
||||
*/
|
||||
char* GetVersionString(SMESH::MED_VERSION version, CORBA::Short nbDigits);
|
||||
|
||||
void ExportToMED( const char* file, CORBA::Boolean auto_groups, SMESH::MED_VERSION theVersion )
|
||||
throw (SALOME::SALOME_Exception);
|
||||
|
Loading…
Reference in New Issue
Block a user