* Maximal size of memory to be used by the algorithm (in Megabytes).
* Negative value means not to use this option
*/
- void SetMaximumMemory(in short MB);
+ void SetMaximumMemory(in short MB) raises (SALOME::SALOME_Exception);
short GetMaximumMemory();
/*!
* Initial size of memory to be used by the algorithm (in Megabytes) in
* automatic memory adjustment mode. Default is zero.
* Negative value means not to use this option
*/
- void SetInitialMemory(in short MB);
+ void SetInitialMemory(in short MB) raises (SALOME::SALOME_Exception);
short GetInitialMemory();
/*!
* Optimization level: 0-none, 1-light, 2-medium, 3-strong. Default is medium
//=======================================================================
void GHS3DPlugin_Hypothesis_i::SetMaximumMemory(CORBA::Short MB)
+ throw ( SALOME::SALOME_Exception )
{
+ if ( MB == 0 )
+ THROW_SALOME_CORBA_EXCEPTION( "Invalid memory size",SALOME::BAD_PARAM );
ASSERT(myBaseImpl);
this->GetImpl()->SetMaximumMemory(MB);
SMESH::TPythonDump() << _this() << ".SetMaximumMemory( " << MB << " )";
//=======================================================================
void GHS3DPlugin_Hypothesis_i::SetInitialMemory(CORBA::Short MB)
+ throw ( SALOME::SALOME_Exception )
{
+ if ( MB == 0 )
+ THROW_SALOME_CORBA_EXCEPTION( "Invalid memory size",SALOME::BAD_PARAM );
ASSERT(myBaseImpl);
this->GetImpl()->SetInitialMemory(MB);
SMESH::TPythonDump() << _this() << ".SetInitialMemory( " << MB << " )";
/*!
* Maximal size of memory to be used by the algorithm (in Megabytes)
*/
- void SetMaximumMemory(CORBA::Short MB);
+ void SetMaximumMemory(CORBA::Short MB) throw ( SALOME::SALOME_Exception );
CORBA::Short GetMaximumMemory();
/*!
* Initial size of memory to be used by the algorithm (in Megabytes) in
* automatic memory adjustment mode. Default is zero
*/
- void SetInitialMemory(CORBA::Short MB);
+ void SetInitialMemory(CORBA::Short MB) throw ( SALOME::SALOME_Exception );
CORBA::Short GetInitialMemory();
/*!
* Optimization level: 0-none, 1-light, 2-medium, 3-strong. Default is medium