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