Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / GeomAPI / GeomAPI_Interface.cpp
1 // File:        GeomAPI_Interface.cpp
2 // Created:     23 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #include <GeomAPI_Interface.h>
6
7 GeomAPI_Interface::GeomAPI_Interface()
8 {
9   myImpl = 0;
10 }
11
12 GeomAPI_Interface::GeomAPI_Interface(void* theImpl)
13 {
14   myImpl = theImpl;
15 }
16
17 GeomAPI_Interface::~GeomAPI_Interface()
18 {
19   if (myImpl)
20     delete myImpl;
21 }
22
23 void GeomAPI_Interface::setImpl(void* theImpl)
24 {
25   if (myImpl)
26     delete myImpl;
27   myImpl = theImpl;
28 }