Salome HOME
7cd49a7e4815d435910514b619c0ccd533314571
[modules/med.git] / src / MEDMEM / MEDMEM_Unit.cxx
1 //  MED MEDMEM : MED files in memory
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_Unit.cxx
25 //  Module : MED
26
27 using namespace std;
28 /*
29  File MEDMEM_Unit.cxx
30  $Header$
31 */
32
33 #include "MEDMEM_Unit.hxx"
34
35 UNIT::UNIT():_name(""),_description(""),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
36   MESSAGE("UNIT()");
37 };
38
39 UNIT::UNIT(string Name, string Description):_name(Name),_description(Description),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
40   MESSAGE("UNIT(string Name, string Description)");
41 };
42
43 UNIT::~UNIT() {
44   MESSAGE("~UNIT()") ;
45 };
46
47 UNIT & UNIT::operator=(const UNIT &unit) {
48   MESSAGE("UNIT::operateur=") ;
49   _name=unit._name ;
50   _description=unit._description ;
51   _masse=unit._masse ; 
52   _length=unit._length ; 
53   _time=unit._time ; 
54   _temperature=unit._temperature ; 
55   _matterQuantity=unit._matterQuantity ; 
56   _currentStrength=unit._currentStrength ; 
57   _lightIntensity=unit._lightIntensity ; 
58   return *this;
59 };