Salome HOME
NRI : Merge from V1_2.
[modules/med.git] / src / MEDMEM_SWIG / MEDMEM_SWIG_FieldInt.cxx
1 //  MED MEDMEM_SWIG : binding of C++ implementation and Python
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : MEDMEM_SWIG_FieldInt.cxx
25 //  Module : MED
26
27 using namespace std;
28 #include "MEDMEM_SWIG_FieldInt.hxx"
29
30 //=============================================================================
31 /*!
32  * Default constructor
33  */
34 //=============================================================================
35 FIELDINT::FIELDINT() : FIELD<int>()
36 {
37         BEGIN_OF("Default Constructor (for Python API) FIELDINT");
38
39         END_OF("Default Constructor (for Python API) FIELDINT");
40 }
41 //=============================================================================
42 /*!
43  * Constructor with arguments
44  */
45 //=============================================================================
46 FIELDINT::FIELDINT(const SUPPORT * Support, const int NumberOfComponents) : FIELD<int>(Support,NumberOfComponents)
47 {
48   BEGIN_OF("Constructor with arguments (for Python API) FIELDINT");
49
50   med_type_champ type = MED_INT32;
51
52   setValueType(type);
53
54   END_OF("Constructor with arguments (for Python API) FIELDINT");
55 }
56 //=============================================================================
57 /*!
58  * Another constructor with arguments
59  */
60 //=============================================================================
61 FIELDINT::FIELDINT(const SUPPORT * Support, driverTypes driverType,
62                    const string & fileName,
63                    const string & fieldName) :
64   FIELD<int>(Support, driverType, fileName, fieldName)
65 {
66   BEGIN_OF("Another constructor with arguments (for Python API) FIELDINT");
67
68   END_OF("Another constructor with arguments (for Python API) FIELDINT");
69 }
70 //=============================================================================
71 /*!
72  * Destructor
73  */
74 //=============================================================================
75 FIELDINT::~FIELDINT()
76 {
77   BEGIN_OF("Default Destructor (for Python API) FIELDINT");
78
79   END_OF("Default Destructor (for Python API) FIELDINT");
80 }