2 //=============================================================================
3 // File : SMESH_Algo_i.cxx
4 // Created : sam mai 18 09:21:02 CEST 2002
5 // Author : Paul RASCLE, EDF
7 // Copyright : EDF 2002
9 //=============================================================================
12 #include "SMESH_Algo_i.hxx"
13 #include "SMESH_Gen.hxx"
14 #include "SMESH_HypothesisFactory.hxx"
16 #include "Utils_CorbaException.hxx"
17 #include "utilities.h"
22 //=============================================================================
26 //=============================================================================
28 SMESH_Algo_i::SMESH_Algo_i()
30 MESSAGE("SMESH_Algo_i::SMESH_Algo_i");
33 //=============================================================================
37 //=============================================================================
39 SMESH_Algo_i::~SMESH_Algo_i()
41 MESSAGE("SMESH_Algo_i::~SMESH_Algo_i");
44 //=============================================================================
48 //=============================================================================
50 SMESH::ListOfHypothesisName* SMESH_Algo_i::GetCompatibleHypothesis()
52 MESSAGE("SMESH_Algo_i::GetCompatibleHypothesis");
53 SMESH::ListOfHypothesisName_var listOfHypothesis
54 = new SMESH::ListOfHypothesisName;
55 const vector<string> & hypList = _impl->GetCompatibleHypothesis();
56 int nbHyp = hypList.size();
57 listOfHypothesis->length(nbHyp);
58 for (int i=0; i<nbHyp; i++)
60 listOfHypothesis[i] = hypList[i].c_str();
62 return listOfHypothesis._retn();
65 //=============================================================================
69 //=============================================================================
71 void SMESH_Algo_i::SetImpl(::SMESH_Algo* impl)
73 MESSAGE("SMESH_Algo_i::SetImpl");
74 //SMESH_Algo_i::SetImpl(impl);