Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESH_I / SMESH_Algo_i.cxx
1 using namespace std;
2 //=============================================================================
3 // File      : SMESH_Algo_i.cxx
4 // Created   : sam mai 18 09:21:02 CEST 2002
5 // Author    : Paul RASCLE, EDF
6 // Project   : SALOME
7 // Copyright : EDF 2002
8 // $Header$
9 //=============================================================================
10 using namespace std;
11
12 #include "SMESH_Algo_i.hxx"
13 #include "SMESH_Gen.hxx"
14 #include "SMESH_HypothesisFactory.hxx"
15
16 #include "Utils_CorbaException.hxx"
17 #include "utilities.h"
18
19 #include <string>
20 #include <vector>
21
22 //=============================================================================
23 /*!
24  *  
25  */
26 //=============================================================================
27
28 SMESH_Algo_i::SMESH_Algo_i()
29 {
30   MESSAGE("SMESH_Algo_i::SMESH_Algo_i");
31 }
32
33 //=============================================================================
34 /*!
35  *  
36  */
37 //=============================================================================
38
39 SMESH_Algo_i::~SMESH_Algo_i()
40 {
41   MESSAGE("SMESH_Algo_i::~SMESH_Algo_i");
42 }
43
44 //=============================================================================
45 /*!
46  *  
47  */
48 //=============================================================================
49
50 SMESH::ListOfHypothesisName* SMESH_Algo_i::GetCompatibleHypothesis()
51 {
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++)
59     {
60       listOfHypothesis[i] = hypList[i].c_str();
61     }
62   return listOfHypothesis._retn();
63 }
64
65 //=============================================================================
66 /*!
67  *  
68  */
69 //=============================================================================
70
71 void SMESH_Algo_i::SetImpl(::SMESH_Algo* impl)
72 {
73   MESSAGE("SMESH_Algo_i::SetImpl");
74   //SMESH_Algo_i::SetImpl(impl);
75   _impl = impl;
76 }