+//=============================================================================
+/*!
+ *
+ */
+//=============================================================================
+
+const char* SMESH_Hypothesis::GetLibName() const
+{
+ return _libName.c_str();
+}
+
+//=============================================================================
+/*!
+ *
+ */
+//=============================================================================
+
+void SMESH_Hypothesis::SetLibName(const char* theLibName)
+{
+ _libName = string(theLibName);
+}
+
+//=======================================================================
+//function : GetMeshByPersistentID
+//purpose : Find a mesh with given persistent ID
+//=======================================================================
+
+SMESH_Mesh* SMESH_Hypothesis::GetMeshByPersistentID(int id)
+{
+ StudyContextStruct* myStudyContext = _gen->GetStudyContext(_studyId);
+ map<int, SMESH_Mesh*>::iterator itm = itm = myStudyContext->mapMesh.begin();
+ for ( ; itm != myStudyContext->mapMesh.end(); itm++)
+ {
+ SMESH_Mesh* mesh = (*itm).second;
+ if ( mesh->GetMeshDS()->GetPersistentId() == id )
+ return mesh;
+ }
+ return 0;
+}
+
+//=============================================================================
+/*!
+ *
+ */
+//=============================================================================
+// void SMESH_Hypothesis::SetParameters(const char *theParameters)
+// {
+// string aNewParameters(theParameters);
+// if(aNewParameters.size()==0 && _parameters.size()==0)
+// aNewParameters = " ";
+// if(_parameters.size()>0)
+// _parameters +="|";
+// _parameters +=aNewParameters;
+// SetLastParameters(theParameters);
+// }
+
+// //=============================================================================
+// /*!
+// *
+// */
+// //=============================================================================
+// void SMESH_Hypothesis::ClearParameters()
+// {
+// _parameters = string();
+// }
+
+// //=============================================================================
+// /*!
+// *
+// */
+// //=============================================================================
+// char* SMESH_Hypothesis::GetParameters() const
+// {
+// return (char*)_parameters.c_str();
+// }
+
+// //=============================================================================
+// /*!
+// *
+// */
+// //=============================================================================
+// char* SMESH_Hypothesis::GetLastParameters() const
+// {
+// return (char*)_lastParameters.c_str();
+// }
+
+// //=============================================================================
+// /*!
+// *
+// */
+// //=============================================================================
+// void SMESH_Hypothesis::SetLastParameters(const char* theParameters)
+// {
+// _lastParameters = string(theParameters);
+// }