Salome HOME
8648722bb841d7b1eba141d3ce917faff1ff7d79
[modules/med.git] / src / MEDMEM / MEDMEM_Unit.cxx
1 using namespace std;
2 /*
3  File MEDMEM_Unit.cxx
4  $Header$
5 */
6
7 #include "MEDMEM_Unit.hxx"
8
9 UNIT::UNIT():_name(""),_description(""),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
10   MESSAGE("UNIT()");
11 };
12
13 UNIT::UNIT(string Name, string Description):_name(Name),_description(Description),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
14   MESSAGE("UNIT(string Name, string Description)");
15 };
16
17 UNIT::~UNIT() {
18   MESSAGE("~UNIT()") ;
19 };
20
21 UNIT & UNIT::operator=(const UNIT &unit) {
22   MESSAGE("UNIT::operateur=") ;
23   _name=unit._name ;
24   _description=unit._description ;
25   _masse=unit._masse ; 
26   _length=unit._length ; 
27   _time=unit._time ; 
28   _temperature=unit._temperature ; 
29   _matterQuantity=unit._matterQuantity ; 
30   _currentStrength=unit._currentStrength ; 
31   _lightIntensity=unit._lightIntensity ; 
32   return *this;
33 };