1 // MED MEDMEM_SWIG : binding of C++ implementation and Python
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : MEDMEM_SWIG_FieldInt.cxx
28 #include "MEDMEM_SWIG_FieldInt.hxx"
30 //=============================================================================
34 //=============================================================================
35 FIELDINT::FIELDINT() : FIELD<int>()
37 BEGIN_OF("Default Constructor (for Python API) FIELDINT");
39 END_OF("Default Constructor (for Python API) FIELDINT");
41 //=============================================================================
43 * Constructor with arguments
45 //=============================================================================
46 FIELDINT::FIELDINT(const SUPPORT * Support, const int NumberOfComponents) : FIELD<int>(Support,NumberOfComponents)
48 BEGIN_OF("Constructor with arguments (for Python API) FIELDINT");
50 med_type_champ type = MED_INT32;
54 END_OF("Constructor with arguments (for Python API) FIELDINT");
56 //=============================================================================
58 * Another constructor with arguments
60 //=============================================================================
61 FIELDINT::FIELDINT(const SUPPORT * Support, driverTypes driverType,
62 const string & fileName,
63 const string & fieldName) :
64 FIELD<int>(Support, driverType, fileName, fieldName)
66 BEGIN_OF("Another constructor with arguments (for Python API) FIELDINT");
68 END_OF("Another constructor with arguments (for Python API) FIELDINT");
70 //=============================================================================
74 //=============================================================================
77 BEGIN_OF("Default Destructor (for Python API) FIELDINT");
79 END_OF("Default Destructor (for Python API) FIELDINT");