]> SALOME platform Git repositories - modules/med.git/blob - src/MEDMEM/MEDMEM_Unit.cxx
Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / src / MEDMEM / MEDMEM_Unit.cxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 /*
23  File MEDMEM_Unit.cxx
24  $Header$
25 */
26
27 #include "MEDMEM_Unit.hxx"
28
29 using namespace std;
30 using namespace MEDMEM;
31
32 UNIT::UNIT():_name(""),_description(""),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
33   MESSAGE_MED("UNIT()");
34 };
35
36 UNIT::UNIT(string Name, string Description):_name(Name),_description(Description),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
37   MESSAGE_MED("UNIT(string Name, string Description)");
38 };
39
40 UNIT::~UNIT() {
41   MESSAGE_MED("~UNIT()") ;
42 };
43
44 UNIT & UNIT::operator=(const UNIT &unit) {
45   MESSAGE_MED("UNIT::operateur=") ;
46   _name=unit._name ;
47   _description=unit._description ;
48   _masse=unit._masse ; 
49   _length=unit._length ; 
50   _time=unit._time ; 
51   _temperature=unit._temperature ; 
52   _matterQuantity=unit._matterQuantity ; 
53   _currentStrength=unit._currentStrength ; 
54   _lightIntensity=unit._lightIntensity ; 
55   return *this;
56 };