In case of any error these methods return None object to the Python.
*/
+#ifdef WIN32
+ #if defined SALOMEPY_EXPORTS || defined SalomePy_EXPORTS
+ #define SALOMEPY_EXPORT __declspec( dllexport )
+ #else
+ #define SALOMEPY_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define SALOMEPY_EXPORT
+#endif
+
+
#define PUBLISH_ENUM(i) \
{ \
PyObject *w; \
\return VTK window renderer object
*/
-class TGetRendererEvent: public SALOME_Event
+class SALOMEPY_EXPORT TGetRendererEvent: public SALOME_Event
{
public:
typedef PyObject* TResult;
}
};
-extern "C" PyObject* libSalomePy_getRenderer( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_getRenderer( PyObject* self, PyObject* args )
{
PyObject* aResult = Py_None;
int toCreate = 0;
\return VTK window render window object
*/
-class TGetRenderWindowEvent: public SALOME_Event
+class SALOMEPY_EXPORT TGetRenderWindowEvent: public SALOME_Event
{
public:
typedef PyObject* TResult;
}
};
-extern "C" PyObject* libSalomePy_getRenderWindow( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_getRenderWindow( PyObject* self, PyObject* args )
{
PyObject* aResult = Py_None;
int toCreate = 0;
\return VTK window render window interactor object
*/
-class TGetRenderWindowInteractorEvent: public SALOME_Event
+class SALOMEPY_EXPORT TGetRenderWindowInteractorEvent: public SALOME_Event
{
public:
typedef PyObject* TResult;
}
};
-extern "C" PyObject* libSalomePy_getRenderWindowInteractor( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_getRenderWindowInteractor( PyObject* self, PyObject* args )
{
PyObject* aResult = Py_None;
int toCreate = 0;
\return nothing (Py_None)
*/
-extern "C" PyObject* libSalomePy_showTrihedron( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_showTrihedron( PyObject* self, PyObject* args )
{
class TEvent: public SALOME_Event
{
\return nothing (Py_None)
*/
-extern "C" PyObject* libSalomePy_fitAll( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_fitAll( PyObject* self, PyObject* args )
{
class TEvent: public SALOME_Event
{
\return nothing (Py_None)
*/
-extern "C" PyObject* libSalomePy_setView( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_setView( PyObject* self, PyObject* args )
{
class TEvent: public SALOME_Event
{
\return nothing (Py_None)
*/
-extern "C" PyObject* libSalomePy_resetView( PyObject* self, PyObject* args )
+extern "C" SALOMEPY_EXPORT PyObject* libSalomePy_resetView( PyObject* self, PyObject* args )
{
class TEvent: public SALOME_Event
{
\brief Python module initialization.
\internal
*/
-extern "C" void initlibSalomePy()
+extern "C" SALOMEPY_EXPORT void initlibSalomePy()
{
static char* modulename = (char*)"libSalomePy";