From b73225883bec4ac1039e291b646d8c89ee66beaf Mon Sep 17 00:00:00 2001 From: SALOME Date: Mon, 24 Aug 2020 13:53:02 +0300 Subject: [PATCH] fight warnings c++17 error throw(). Build HYBRIDPLUGIN finished --- src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.cxx | 8 --- src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.hxx | 16 +++--- .../HYBRIDPlugin_Hypothesis_i.cxx | 36 +++--------- .../HYBRIDPlugin_Hypothesis_i.hxx | 56 +++++++++---------- 4 files changed, 44 insertions(+), 72 deletions(-) diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.cxx b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.cxx index fea8bd7..57c0150 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.cxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.cxx @@ -1046,7 +1046,6 @@ bool HYBRIDPlugin_Hypothesis::SetEnforcedElements(TIDSortedElemSet theElemSet, S //======================================================================= HYBRIDPlugin_Hypothesis::THYBRIDEnforcedVertex* HYBRIDPlugin_Hypothesis::GetEnforcedVertex(double x, double y, double z) - throw (std::invalid_argument) { std::vector coord(3); coord[0] = x; @@ -1060,7 +1059,6 @@ HYBRIDPlugin_Hypothesis::THYBRIDEnforcedVertex* HYBRIDPlugin_Hypothesis::GetEnfo } HYBRIDPlugin_Hypothesis::THYBRIDEnforcedVertex* HYBRIDPlugin_Hypothesis::GetEnforcedVertex(const std::string theEntry) - throw (std::invalid_argument) { if (_geomEntryEnfVertexMap.count(theEntry)>0) return _geomEntryEnfVertexMap[theEntry]; @@ -1075,7 +1073,6 @@ HYBRIDPlugin_Hypothesis::THYBRIDEnforcedVertex* HYBRIDPlugin_Hypothesis::GetEnfo //======================================================================= bool HYBRIDPlugin_Hypothesis::RemoveEnforcedVertex(double x, double y, double z, const std::string theEntry) - throw (std::invalid_argument) { bool toNotify = false; std::ostringstream msg; @@ -2186,7 +2183,6 @@ std::string HYBRIDPlugin_Hypothesis::GetExeName() //============================================================================= void HYBRIDPlugin_Hypothesis::SetOptionValue(const std::string& optionName, const std::string& optionValue) - throw (std::invalid_argument) { TOptionValues::iterator op_val = _option2value.find(optionName); if (op_val == _option2value.end()) @@ -2251,7 +2247,6 @@ void HYBRIDPlugin_Hypothesis::SetOptionValue(const std::string& optionName, // empty if it equals a default one. std::string HYBRIDPlugin_Hypothesis::GetOptionValue(const std::string& optionName, bool* isDefault) const - throw (std::invalid_argument) { TOptionValues::const_iterator op_val = _option2value.find(optionName); if (op_val == _option2value.end()) @@ -2322,7 +2317,6 @@ HYBRIDPlugin_Hypothesis::TOptionValues HYBRIDPlugin_Hypothesis::GetOptionValues( //================================================================================ bool HYBRIDPlugin_Hypothesis::ToBool(const std::string& str, bool* isOk ) - throw (std::invalid_argument) { std::string s = str; if ( isOk ) *isOk = true; @@ -2352,7 +2346,6 @@ bool HYBRIDPlugin_Hypothesis::ToBool(const std::string& str, bool* isOk ) //================================================================================ double HYBRIDPlugin_Hypothesis::ToDbl(const std::string& str, bool* isOk ) - throw (std::invalid_argument) { if ( str.empty() ) throw std::invalid_argument("Empty value provided"); @@ -2377,7 +2370,6 @@ double HYBRIDPlugin_Hypothesis::ToDbl(const std::string& str, bool* isOk ) //================================================================================ int HYBRIDPlugin_Hypothesis::ToInt(const std::string& str, bool* isOk ) - throw (std::invalid_argument) { if ( str.empty() ) throw std::invalid_argument("Empty value provided"); diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.hxx b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.hxx index 3efad3f..b246b6e 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.hxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.hxx @@ -309,17 +309,17 @@ public: typedef std::set< std::string > TOptionNames; void SetOptionValue(const std::string& optionName, - const std::string& optionValue) throw (std::invalid_argument); + const std::string& optionValue); std::string GetOptionValue(const std::string& optionName, - bool* isDefault=0) const throw (std::invalid_argument); + bool* isDefault=0) const; bool HasOptionDefined( const std::string& optionName ) const; void ClearOption(const std::string& optionName); TOptionValues GetOptionValues() const; const TOptionValues& GetCustomOptionValues() const { return _customOption2value; } - static bool ToBool(const std::string& str, bool* isOk=0) throw (std::invalid_argument); - static double ToDbl(const std::string& str, bool* isOk=0) throw (std::invalid_argument); - static int ToInt(const std::string& str, bool* isOk=0) throw (std::invalid_argument); + static bool ToBool(const std::string& str, bool* isOk=0); + static double ToDbl(const std::string& str, bool* isOk=0); + static int ToInt(const std::string& str, bool* isOk=0); /*! @@ -344,9 +344,9 @@ public: */ bool SetEnforcedVertex(std::string aName, std::string anEntry, std::string aGroupName, double size, double x=0.0, double y=0.0, double z=0.0, bool isCompound = false); - THYBRIDEnforcedVertex* GetEnforcedVertex(double x, double y, double z) throw (std::invalid_argument); - THYBRIDEnforcedVertex* GetEnforcedVertex(const std::string anEntry) throw (std::invalid_argument); - bool RemoveEnforcedVertex(double x=0.0, double y=0.0, double z=0.0, const std::string anEntry="" ) throw (std::invalid_argument); + THYBRIDEnforcedVertex* GetEnforcedVertex(double x, double y, double z); + THYBRIDEnforcedVertex* GetEnforcedVertex(const std::string anEntry); + bool RemoveEnforcedVertex(double x=0.0, double y=0.0, double z=0.0, const std::string anEntry="" ); const THYBRIDEnforcedVertexCoordsValues _GetEnforcedVerticesCoordsSize() const {return _enfVertexCoordsSizeList; } const THYBRIDEnforcedVertexEntryValues _GetEnforcedVerticesEntrySize() const {return _enfVertexEntrySizeList; } const THYBRIDEnforcedVertexList _GetEnforcedVertices() const { return _enfVertexList; } diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.cxx b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.cxx index cefad10..c5701a0 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.cxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.cxx @@ -260,7 +260,6 @@ CORBA::Boolean HYBRIDPlugin_Hypothesis_i::GetToMakeGroupsOfDomains() //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetMaximumMemory(CORBA::Double MB) - throw ( SALOME::SALOME_Exception ) { if ( MB == 0 ) THROW_SALOME_CORBA_EXCEPTION( "Invalid memory size",SALOME::BAD_PARAM ); @@ -284,7 +283,6 @@ CORBA::Double HYBRIDPlugin_Hypothesis_i::GetMaximumMemory() //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetInitialMemory(CORBA::Double MB) - throw ( SALOME::SALOME_Exception ) { if ( MB == 0 ) THROW_SALOME_CORBA_EXCEPTION( "Invalid memory size",SALOME::BAD_PARAM ); @@ -308,7 +306,6 @@ CORBA::Double HYBRIDPlugin_Hypothesis_i::GetInitialMemory() //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetOptimizationLevel(CORBA::Short level) - throw ( SALOME::SALOME_Exception ) { ::HYBRIDPlugin_Hypothesis::OptimizationLevel l = (::HYBRIDPlugin_Hypothesis::OptimizationLevel) level; @@ -336,7 +333,6 @@ CORBA::Short HYBRIDPlugin_Hypothesis_i::GetOptimizationLevel() //function : SetCollisionMode //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetCollisionMode(CORBA::Short level) - throw ( SALOME::SALOME_Exception ) { ::HYBRIDPlugin_Hypothesis::CollisionMode l = (::HYBRIDPlugin_Hypothesis::CollisionMode) level; @@ -361,7 +357,7 @@ CORBA::Short HYBRIDPlugin_Hypothesis_i::GetCollisionMode() //======================================================================= //function : SetWorkingDirectory //======================================================================= -void HYBRIDPlugin_Hypothesis_i::SetWorkingDirectory(const char* path) throw ( SALOME::SALOME_Exception ) +void HYBRIDPlugin_Hypothesis_i::SetWorkingDirectory(const char* path) { if (!path ) THROW_SALOME_CORBA_EXCEPTION( "Null working directory",SALOME::BAD_PARAM ); @@ -413,7 +409,6 @@ CORBA::Boolean HYBRIDPlugin_Hypothesis_i::GetKeepFiles() //function : SetVerboseLevel //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetVerboseLevel(CORBA::Short level) - throw ( SALOME::SALOME_Exception ) { if (level < 0 || level > 10 ) THROW_SALOME_CORBA_EXCEPTION( "Invalid verbose level, valid range is [0-10]", @@ -519,7 +514,6 @@ CORBA::Boolean HYBRIDPlugin_Hypothesis_i::GetToRemoveCentralPoint() //============================================================================= void HYBRIDPlugin_Hypothesis_i::SetOptionValue(const char* optionName, const char* optionValue) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); try { @@ -615,7 +609,6 @@ void HYBRIDPlugin_Hypothesis_i::SetOptionValue(const char* optionName, const cha //============================================================================= char* HYBRIDPlugin_Hypothesis_i::GetOptionValue(const char* optionName) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); try { @@ -693,7 +686,6 @@ HYBRIDPlugin::string_array* HYBRIDPlugin_Hypothesis_i::GetAdvancedOptionValues() //============================================================================= void HYBRIDPlugin_Hypothesis_i::SetOptionValues(const HYBRIDPlugin::string_array& options) - throw (SALOME::SALOME_Exception) { for (CORBA::ULong i = 0; i < options.length(); ++i) { @@ -754,7 +746,6 @@ void HYBRIDPlugin_Hypothesis_i::SetAdvancedOptionValues(const HYBRIDPlugin::stri //============================================================================= void HYBRIDPlugin_Hypothesis_i::SetAdvancedOption(const char* optionsAndValues) - throw (SALOME::SALOME_Exception) { if ( !optionsAndValues ) return; @@ -907,7 +898,6 @@ CORBA::Boolean HYBRIDPlugin_Hypothesis_i::GetRemoveLogOnSuccess() //function : SetBoundaryLayersGrowth //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetBoundaryLayersGrowth(CORBA::Short level) - throw ( SALOME::SALOME_Exception ) { ::HYBRIDPlugin_Hypothesis::BoundaryLayersGrowth l = (::HYBRIDPlugin_Hypothesis::BoundaryLayersGrowth) level; @@ -933,7 +923,6 @@ CORBA::Short HYBRIDPlugin_Hypothesis_i::GetBoundaryLayersGrowth() //function : SetElementGeneration //======================================================================= void HYBRIDPlugin_Hypothesis_i::SetElementGeneration(CORBA::Short level) - throw ( SALOME::SALOME_Exception ) { ::HYBRIDPlugin_Hypothesis::ElementGeneration l = (::HYBRIDPlugin_Hypothesis::ElementGeneration) level; @@ -1093,31 +1082,31 @@ CORBA::Short HYBRIDPlugin_Hypothesis_i::GetNbOfBoundaryLayers() //======================================================================= bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); return p_SetEnforcedVertex(size, x, y, z); } bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theVertexName) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); return p_SetEnforcedVertex(size, x, y, z, theVertexName, "", ""); } bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theGroupName) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); return p_SetEnforcedVertex(size, x, y, z, "", "", theGroupName); } bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexNamedWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theVertexName, const char* theGroupName) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); return p_SetEnforcedVertex(size, x, y, z, theVertexName, "", theGroupName); } bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex, CORBA::Double size) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); if ((theVertex->GetShapeType() != GEOM::VERTEX) && (theVertex->GetShapeType() != GEOM::COMPOUND)) { @@ -1159,7 +1148,7 @@ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theV } bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theVertex, CORBA::Double size, const char* theGroupName) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); if ((theVertex->GetShapeType() != GEOM::VERTEX) && (theVertex->GetShapeType() != GEOM::COMPOUND)) { @@ -1204,7 +1193,7 @@ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object bool HYBRIDPlugin_Hypothesis_i:: p_SetEnforcedVertex(CORBA::Double size, CORBA::Double x, CORBA::Double y, CORBA::Double z, const char* theVertexName, const char* theVertexEntry, const char* theGroupName, CORBA::Boolean isCompound) - throw (SALOME::SALOME_Exception) { +{ ASSERT(myBaseImpl); bool newValue = false; @@ -1280,7 +1269,6 @@ bool HYBRIDPlugin_Hypothesis_i:: p_SetEnforcedVertex(CORBA::Double size, CORBA:: //======================================================================= CORBA::Double HYBRIDPlugin_Hypothesis_i::GetEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); try { @@ -1306,7 +1294,6 @@ CORBA::Double HYBRIDPlugin_Hypothesis_i::GetEnforcedVertex(CORBA::Double x, CORB //======================================================================= CORBA::Double HYBRIDPlugin_Hypothesis_i::GetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); @@ -1398,7 +1385,6 @@ HYBRIDPlugin::HYBRIDEnforcedVertexList* HYBRIDPlugin_Hypothesis_i::GetEnforcedVe //======================================================================= bool HYBRIDPlugin_Hypothesis_i::RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); try { @@ -1420,7 +1406,6 @@ bool HYBRIDPlugin_Hypothesis_i::RemoveEnforcedVertex(CORBA::Double x, CORBA::Dou } bool HYBRIDPlugin_Hypothesis_i::RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); @@ -1523,7 +1508,6 @@ HYBRIDPlugin::HYBRIDEnforcedMeshList* HYBRIDPlugin_Hypothesis_i::GetEnforcedMesh * \brief Adds enforced elements of type elementType using another mesh/sub-mesh/mesh group theSource. The elements will be grouped in theGroupName. */ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMeshWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, const char* theGroupName) - throw (SALOME::SALOME_Exception) { // #if HYBRID_VERSION >= 42 return p_SetEnforcedMesh(theSource, theType, "", theGroupName); @@ -1541,7 +1525,6 @@ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMeshWithGroup(SMESH::SMESH_IDSource_p * \brief Adds enforced elements of type elementType using another mesh/sub-mesh/mesh group theSource. */ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType) - throw (SALOME::SALOME_Exception) { // #if HYBRID_VERSION >= 42 return p_SetEnforcedMesh(theSource, theType); @@ -1559,7 +1542,6 @@ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSou * \brief OBSOLETE FUNCTION - Adds enforced elements of type elementType using another mesh/sub-mesh/mesh group theSource and a size. The elements will be grouped in theGroupName. */ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, double theSize, const char* theGroupName) - throw (SALOME::SALOME_Exception) { // #if HYBRID_VERSION >= 42 return p_SetEnforcedMesh(theSource, theType, "", theGroupName); @@ -1577,7 +1559,6 @@ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSour * \brief OBSOLETE FUNCTION - Adds enforced elements of type elementType using another mesh/sub-mesh/mesh group theSource and a size. */ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, double theSize) - throw (SALOME::SALOME_Exception) { // #if HYBRID_VERSION >= 42 return p_SetEnforcedMesh(theSource, theType); @@ -1592,7 +1573,6 @@ bool HYBRIDPlugin_Hypothesis_i::SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr th } bool HYBRIDPlugin_Hypothesis_i::p_SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, const char* theName, const char* theGroupName) - throw (SALOME::SALOME_Exception) { ASSERT(myBaseImpl); diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.hxx b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.hxx index 76c064c..f87e9bc 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.hxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis_i.hxx @@ -94,28 +94,28 @@ class HYBRIDPLUGIN_EXPORT HYBRIDPlugin_Hypothesis_i: /*! * Maximal size of memory to be used by the algorithm (in Megabytes) */ - void SetMaximumMemory(CORBA::Double MB) throw ( SALOME::SALOME_Exception ); + void SetMaximumMemory(CORBA::Double MB); CORBA::Double GetMaximumMemory(); /*! * Initial size of memory to be used by the algorithm (in Megabytes) in * automatic memory adjustment mode. Default is zero */ - void SetInitialMemory(CORBA::Double MB) throw ( SALOME::SALOME_Exception ); + void SetInitialMemory(CORBA::Double MB); CORBA::Double GetInitialMemory(); /*! * Optimization level: 0-none, 1-light, 2-medium, 3-strong. Default is medium */ - void SetOptimizationLevel(CORBA::Short level) throw ( SALOME::SALOME_Exception ); + void SetOptimizationLevel(CORBA::Short level); CORBA::Short GetOptimizationLevel(); /*! * Collision Mode: 0-decrease, 1-stop. Default is decrease */ - void SetCollisionMode(CORBA::Short mode) throw ( SALOME::SALOME_Exception ); + void SetCollisionMode(CORBA::Short mode); CORBA::Short GetCollisionMode(); /*! * Path to working directory */ - void SetWorkingDirectory(const char* path) throw ( SALOME::SALOME_Exception ); + void SetWorkingDirectory(const char* path); char* GetWorkingDirectory(); /*! * To keep working files or remove them. Log file remains in case of errors anyway. @@ -132,7 +132,7 @@ class HYBRIDPLUGIN_EXPORT HYBRIDPlugin_Hypothesis_i: * histogram of the skin mesh, quality statistics histogram together with * the characteristics of the final mesh. */ - void SetVerboseLevel(CORBA::Short level) throw ( SALOME::SALOME_Exception ); + void SetVerboseLevel(CORBA::Short level); CORBA::Short GetVerboseLevel(); /*! * To create new nodes @@ -159,14 +159,14 @@ class HYBRIDPLUGIN_EXPORT HYBRIDPlugin_Hypothesis_i: void SetToRemoveCentralPoint(CORBA::Boolean toRemove); CORBA::Boolean GetToRemoveCentralPoint(); - void SetOptionValue(const char* optionName, const char* optionValue) throw (SALOME::SALOME_Exception); - char* GetOptionValue(const char* optionName) throw (SALOME::SALOME_Exception); + void SetOptionValue(const char* optionName, const char* optionValue) ; + char* GetOptionValue(const char* optionName) ; void UnsetOption(const char* optionName); HYBRIDPlugin::string_array* GetOptionValues(); HYBRIDPlugin::string_array* GetAdvancedOptionValues(); - void SetOptionValues(const HYBRIDPlugin::string_array& options) throw (SALOME::SALOME_Exception); + void SetOptionValues(const HYBRIDPlugin::string_array& options) ; void SetAdvancedOptionValues(const HYBRIDPlugin::string_array& options); void AddOption(const char* optionName, const char* optionValue); @@ -174,7 +174,7 @@ class HYBRIDPLUGIN_EXPORT HYBRIDPlugin_Hypothesis_i: /*! * To set hiden/undocumented/advanced options */ - void SetAdvancedOption(const char* theOptAndVals ) throw (SALOME::SALOME_Exception); + void SetAdvancedOption(const char* theOptAndVals ) ; char* GetAdvancedOption(); void SetTextOption(const char* option); char* GetTextOption(); @@ -194,10 +194,10 @@ class HYBRIDPLUGIN_EXPORT HYBRIDPlugin_Hypothesis_i: void SetRemoveLogOnSuccess(CORBA::Boolean removeLogOnSuccess); CORBA::Boolean GetRemoveLogOnSuccess(); - void SetBoundaryLayersGrowth(CORBA::Short mode) throw ( SALOME::SALOME_Exception ); + void SetBoundaryLayersGrowth(CORBA::Short mode); CORBA::Short GetBoundaryLayersGrowth(); - void SetElementGeneration(CORBA::Short mode) throw ( SALOME::SALOME_Exception ); + void SetElementGeneration(CORBA::Short mode); CORBA::Short GetElementGeneration(); void SetAddMultinormals(CORBA::Boolean toAddMultinormals); @@ -227,29 +227,29 @@ class HYBRIDPLUGIN_EXPORT HYBRIDPlugin_Hypothesis_i: bool p_SetEnforcedVertex(CORBA::Double size, CORBA::Double x = 0, CORBA::Double y = 0, CORBA::Double z = 0, const char* theVertexName = "", const char* theVertexEntry = "", const char* theGroupName = "", CORBA::Boolean isCompound = false) - throw (SALOME::SALOME_Exception); - bool SetEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size) throw (SALOME::SALOME_Exception); - bool SetEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theVertexName) throw (SALOME::SALOME_Exception); - bool SetEnforcedVertexWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theGroupName) throw (SALOME::SALOME_Exception); - bool SetEnforcedVertexNamedWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theVertexName, const char* theGroupName) throw (SALOME::SALOME_Exception); - bool SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex, CORBA::Double size) throw (SALOME::SALOME_Exception); - bool SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theVertex, CORBA::Double size, const char* theGroupName) throw (SALOME::SALOME_Exception); - CORBA::Double GetEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z) throw (SALOME::SALOME_Exception); - CORBA::Double GetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex) throw (SALOME::SALOME_Exception); - bool RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z) throw (SALOME::SALOME_Exception); - bool RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex) throw (SALOME::SALOME_Exception); + ; + bool SetEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size) ; + bool SetEnforcedVertexNamed(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theVertexName) ; + bool SetEnforcedVertexWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theGroupName) ; + bool SetEnforcedVertexNamedWithGroup(CORBA::Double x, CORBA::Double y, CORBA::Double z, CORBA::Double size, const char* theVertexName, const char* theGroupName) ; + bool SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex, CORBA::Double size) ; + bool SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_ptr theVertex, CORBA::Double size, const char* theGroupName) ; + CORBA::Double GetEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z) ; + CORBA::Double GetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex) ; + bool RemoveEnforcedVertex(CORBA::Double x, CORBA::Double y, CORBA::Double z) ; + bool RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVertex) ; HYBRIDPlugin::HYBRIDEnforcedVertexList* GetEnforcedVertices(); void ClearEnforcedVertices(); /*! * To set an enforced mesh */ - bool p_SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, const char* theName="", const char* theGroupName="") throw (SALOME::SALOME_Exception); - bool SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType) throw (SALOME::SALOME_Exception); - bool SetEnforcedMeshWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, const char* theGroupName) throw (SALOME::SALOME_Exception); + bool p_SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, const char* theName="", const char* theGroupName="") ; + bool SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType) ; + bool SetEnforcedMeshWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, const char* theGroupName) ; /* OBSOLETE FUNCTIONS */ - bool SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double size) throw (SALOME::SALOME_Exception); - bool SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double size, const char* theGroupName) throw (SALOME::SALOME_Exception); + bool SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double size) ; + bool SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double size, const char* theGroupName) ; /* OBSOLETE FUNCTIONS */ HYBRIDPlugin::HYBRIDEnforcedMeshList* GetEnforcedMeshes(); -- 2.39.2