64 bit NumberOfSegments

This commit is contained in:
Viktor UZLOV 2021-02-20 19:58:35 +03:00
parent a72d53be4f
commit 2507fe6a42
5 changed files with 11 additions and 9 deletions

View File

@ -169,7 +169,7 @@ module StdMeshers
/*! /*!
* Sets <number of segments> parameter value * Sets <number of segments> parameter value
*/ */
void SetNumberOfSegments(in long segmentsNumber) void SetNumberOfSegments(in SMESH::smIdType segmentsNumber)
raises (SALOME::SALOME_Exception); raises (SALOME::SALOME_Exception);
/*! /*!

View File

@ -60,9 +60,10 @@ namespace SMESH
size_t TPythonDump::myCounter = 0; size_t TPythonDump::myCounter = 0;
const char theNotPublishedObjectName[] = "__NOT__Published__Object__"; const char theNotPublishedObjectName[] = "__NOT__Published__Object__";
TVar::TVar(CORBA::Double value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); } TVar::TVar(CORBA::Double value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); }
TVar::TVar(CORBA::Long value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); } TVar::TVar(CORBA::Long value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); }
TVar::TVar(CORBA::Short value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); } TVar::TVar(SMESH::smIdType value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); }
TVar::TVar(CORBA::Short value):myVals(1), myIsList(false) { myVals[0] = SMESH_Comment(value); }
TVar::TVar(const SMESH::double_array& value):myVals(value.length()), myIsList(true) TVar::TVar(const SMESH::double_array& value):myVals(value.length()), myIsList(true)
{ {
for ( size_t i = 0; i < value.length(); i++) for ( size_t i = 0; i < value.length(); i++)

View File

@ -99,9 +99,10 @@ namespace SMESH
{ {
std::vector< std::string > myVals; std::vector< std::string > myVals;
bool myIsList; bool myIsList;
TVar(CORBA::Double value); TVar(CORBA::Double value);
TVar(CORBA::Long value); TVar(CORBA::Long value);
TVar(CORBA::Short value); TVar(SMESH::smIdType value);
TVar(CORBA::Short value);
TVar(const SMESH::double_array& value); TVar(const SMESH::double_array& value);
// string used to temporary quote variable names in order // string used to temporary quote variable names in order
// not to confuse variables with string arguments // not to confuse variables with string arguments

View File

@ -127,7 +127,7 @@ StdMeshers_NumberOfSegments_i::BuildDistributionTab( const SMESH::double_array&
*/ */
//============================================================================= //=============================================================================
void StdMeshers_NumberOfSegments_i::SetNumberOfSegments( CORBA::Long theSegmentsNumber ) void StdMeshers_NumberOfSegments_i::SetNumberOfSegments( SMESH::smIdType theSegmentsNumber )
{ {
ASSERT( myBaseImpl ); ASSERT( myBaseImpl );
try { try {

View File

@ -58,7 +58,7 @@ public:
SMESH::double_array* BuildDistributionTab( const SMESH::double_array&, CORBA::Long, CORBA::Long ); SMESH::double_array* BuildDistributionTab( const SMESH::double_array&, CORBA::Long, CORBA::Long );
// Set number of segments // Set number of segments
void SetNumberOfSegments( CORBA::Long theSegmentsNumber ); void SetNumberOfSegments( SMESH::smIdType theSegmentsNumber );
// Get number of segments // Get number of segments
CORBA::Long GetNumberOfSegments(); CORBA::Long GetNumberOfSegments();