Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMESH / SMESH_HypothesisCreator.hxx
1 //=============================================================================
2 // File      : SMESH_HypothesisCreator.hxx
3 // Created   : lun mai 27 15:28:35 CEST 2002
4 // Author    : Paul RASCLE, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2002
7 // $Header$
8 //=============================================================================
9
10 #ifndef _SMESH_HYPOTHESISCREATOR_HXX_
11 #define _SMESH_HYPOTHESISCREATOR_HXX_
12
13 #include  "SMESH_HypothesisFactory.hxx"
14
15 class SMESH_gen;
16
17 //=============================================================================
18 /*!
19  * Specific Hypothesis Creators are generated with a template which inherits a
20  * generic hypothesis creator. Each creator returns an hypothesis of the type
21  * given in the template. 
22  */
23 //=============================================================================
24
25 template <class T> class SMESH_HypothesisCreator
26   : public GenericHypothesisCreator
27 {
28 public:
29 //   map<int, T*> _instances;
30
31 //   virtual T* GetInstance(int hypId)
32 //   {
33 //     if (_instances.find(hypId) != _instances.end())
34 //       return _instances[hypId];
35 //     else
36 //       return NULL;
37 //   }
38
39   virtual T* Create (int hypId, int studyId, SMESH_Gen* gen)
40   {
41     T* anInstance=  new T(hypId, studyId, gen);
42 //     _gen->StoreHypothesisInstance(anInstance);
43 //     _instances[hypId] = anInstance;
44     return anInstance;
45   };
46 };
47
48
49 #endif