Back to index

salome-med  6.5.0
MEDMEM_Unit.cxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 /*
00024  File MEDMEM_Unit.cxx
00025  $Header: /home/server/cvs/MED/MED_SRC/src/MEDMEM/MEDMEM_Unit.cxx,v 1.10.20.3.10.1 2012-04-13 08:48:31 vsr Exp $
00026 */
00027 
00028 #include "MEDMEM_Unit.hxx"
00029 
00030 using namespace std;
00031 using namespace MEDMEM;
00032 
00033 UNIT::UNIT():_name(""),_description(""),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
00034   MESSAGE_MED("UNIT()");
00035 }
00036 
00037 UNIT::UNIT(string Name, string Description):_name(Name),_description(Description),_masse(0),_length(0),_time(0),_temperature(0),_matterQuantity(0),_currentStrength(0),_lightIntensity(0) {
00038   MESSAGE_MED("UNIT(string Name, string Description)");
00039 }
00040 
00041 UNIT::~UNIT() {
00042   MESSAGE_MED("~UNIT()") ;
00043 }
00044 
00045 UNIT & UNIT::operator=(const UNIT &unit) {
00046   MESSAGE_MED("UNIT::operateur=") ;
00047   _name=unit._name ;
00048   _description=unit._description ;
00049   _masse=unit._masse ; 
00050   _length=unit._length ; 
00051   _time=unit._time ; 
00052   _temperature=unit._temperature ; 
00053   _matterQuantity=unit._matterQuantity ; 
00054   _currentStrength=unit._currentStrength ; 
00055   _lightIntensity=unit._lightIntensity ; 
00056   return *this;
00057 }