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