From 95b5c10de265e27279969cb8d933b84ab813697e Mon Sep 17 00:00:00 2001 From: rkv Date: Mon, 13 Jan 2014 06:56:13 +0000 Subject: [PATCH] SIP: HYDROData_Application is included. --- CMake/UsePyQt4EXT.cmake | 3 ++ src/HYDROData/HYDROData_Application.h | 6 ++-- src/HYDROPy/CMakeLists.txt | 1 + src/HYDROPy/HYDROData.sip | 1 + src/HYDROPy/HYDROData_Application.sip | 46 +++++++++++++++++++++++++++ 5 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 src/HYDROPy/HYDROData_Application.sip diff --git a/CMake/UsePyQt4EXT.cmake b/CMake/UsePyQt4EXT.cmake index 0ee8b06f..7b39624d 100644 --- a/CMake/UsePyQt4EXT.cmake +++ b/CMake/UsePyQt4EXT.cmake @@ -48,6 +48,9 @@ MACRO(PYQT4_WRAP_SIP_EXT outfiles) LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPycmodule.cc) SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPycmodule.cc) + + LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Application.cc) + SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Application.cc) LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_ArtificialObject.cc) SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_ArtificialObject.cc) diff --git a/src/HYDROData/HYDROData_Application.h b/src/HYDROData/HYDROData_Application.h index b20eaefc..c40d4f5e 100644 --- a/src/HYDROData/HYDROData_Application.h +++ b/src/HYDROData/HYDROData_Application.h @@ -24,14 +24,14 @@ public: // useful methods inside of the package public: // Redefined OCAF methods //! Return name of resource (i.e. "Standard") - Standard_CString ResourcesName(); + HYDRODATA_EXPORT Standard_CString ResourcesName(); //! Return format (i.e "MDTV-Standard") //! \param theFormats sequence of allowed formats for input/output - virtual void Formats(TColStd_SequenceOfExtendedString& theFormats); + HYDRODATA_EXPORT virtual void Formats(TColStd_SequenceOfExtendedString& theFormats); //! Constructor //! Use method GetInstance() method to obtain //! the static instance of the object (or derive your own application) - HYDROData_Application(); + HYDRODATA_EXPORT HYDROData_Application(); // CASCADE RTTI DEFINE_STANDARD_RTTI(HYDROData_Application) diff --git a/src/HYDROPy/CMakeLists.txt b/src/HYDROPy/CMakeLists.txt index ffd4c210..67769d58 100644 --- a/src/HYDROPy/CMakeLists.txt +++ b/src/HYDROPy/CMakeLists.txt @@ -85,6 +85,7 @@ SET(_sip_files2 HYDROData_Region.sip HYDROData_CalculationCase.sip HYDROData_Document.sip + HYDROData_Application.sip ) # --- sources --- diff --git a/src/HYDROPy/HYDROData.sip b/src/HYDROPy/HYDROData.sip index 33052691..3d613e08 100644 --- a/src/HYDROPy/HYDROData.sip +++ b/src/HYDROPy/HYDROData.sip @@ -84,5 +84,6 @@ See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com %Include HYDROData_CalculationCase.sip %Include HYDROData_Document.sip +%Include HYDROData_Application.sip diff --git a/src/HYDROPy/HYDROData_Application.sip b/src/HYDROPy/HYDROData_Application.sip new file mode 100644 index 00000000..1faf1922 --- /dev/null +++ b/src/HYDROPy/HYDROData_Application.sip @@ -0,0 +1,46 @@ +// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +%ExportedHeaderCode +#include +%End + +class HYDROData_Application +{ + +%TypeHeaderCode +#include +%End + +public: // useful methods inside of the package + + //! Retuns the application: one per process + static HYDROData_Application* GetApplication(); + +public: // Redefined OCAF methods + //! Return name of resource (i.e. "Standard") + const char* ResourcesName(); + //! Constructor + //! Use method GetInstance() method to obtain + //! the static instance of the object (or derive your own application) + HYDROData_Application(); +}; \ No newline at end of file -- 2.39.2