Salome HOME
Added interfaces to OCC data and algos: features must not depend on OCC
[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::implementation()
24 {
25   return myImpl;
26 }
27
28 void GeomAPI_Interface::setImplementation(void* theImpl)
29 {
30   if (myImpl)
31     delete myImpl;
32   myImpl = theImpl;
33 }