]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
SIP: HYDROData_Application is included.
authorrkv <rkv@opencascade.com>
Mon, 13 Jan 2014 06:56:13 +0000 (06:56 +0000)
committerrkv <rkv@opencascade.com>
Mon, 13 Jan 2014 06:56:13 +0000 (06:56 +0000)
CMake/UsePyQt4EXT.cmake
src/HYDROData/HYDROData_Application.h
src/HYDROPy/CMakeLists.txt
src/HYDROPy/HYDROData.sip
src/HYDROPy/HYDROData_Application.sip [new file with mode: 0644]

index 0ee8b06f98fd398e489ab93e1c4c9883307a0125..7b39624d619189b91133160f27bb1c0d0c9a315f 100644 (file)
@@ -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)
index b20eaefc8d820e7b8563fbd697485b71164e07ab..c40d4f5e8bb63bc7434494aba26ec3b0e66f9c97 100644 (file)
@@ -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)
index ffd4c21007b1b43905ac180265adb66a8e43e11e..67769d58831e61934a680fb62287ef4ca1e68a14 100644 (file)
@@ -85,6 +85,7 @@ SET(_sip_files2
   HYDROData_Region.sip
   HYDROData_CalculationCase.sip
   HYDROData_Document.sip
+  HYDROData_Application.sip
 )
 
 # --- sources ---
index 3305269122e45e03fc30a96342b8e5fc1bea7fa7..3d613e0868c8c9d6b773c108242a3ba08de339cb 100644 (file)
@@ -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 (file)
index 0000000..1faf192
--- /dev/null
@@ -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 <HYDROData_Application.h>
+%End
+
+class HYDROData_Application
+{
+
+%TypeHeaderCode
+#include <HYDROData_Application.h>
+%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