1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomDataAPI_swig.h
4 // Created: Dec 15, 2015
5 // Author: Sergey POKHODENKO
7 #ifndef SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_
8 #define SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_
10 #include <GeomAPI_swig.h>
11 #include <ModelAPI_swig.h>
13 #include "GeomDataAPI.h"
14 #include "GeomDataAPI_Point.h"
15 #include "GeomDataAPI_Dir.h"
16 #include "GeomDataAPI_Point2D.h"
22 template<class T> std::shared_ptr<T> castTo(std::shared_ptr<ModelAPI_Attribute> theObject)
24 return std::dynamic_pointer_cast<T>(theObject);
27 #endif /* SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_ */