]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomDataAPI/GeomDataAPI_swig.h
Salome HOME
Issue #1315 Middle point constraint problem
[modules/shaper.git] / src / GeomDataAPI / GeomDataAPI_swig.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:                GeomDataAPI_swig.h
4 // Created: Dec 15, 2015
5 // Author:  Sergey POKHODENKO
6
7 #ifndef SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_
8 #define SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_
9
10   #include "ModelAPI_swig.h"
11
12   #include "GeomDataAPI.h"
13   #include "GeomDataAPI_Point.h"
14   #include "GeomDataAPI_Dir.h"
15   #include "GeomDataAPI_Point2D.h"
16
17   #include <memory>
18   #include <string>
19   #include <list>
20
21   template<class T> std::shared_ptr<T> castTo(std::shared_ptr<ModelAPI_Attribute> theObject)
22   {
23     return std::dynamic_pointer_cast<T>(theObject);
24   }
25
26 #endif /* SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_ */