SawObject.cpp

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Nestor Aguirre                                  *
00003  *   nfaguirrec@unal.edu.co                                                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #include "SawObject.h"
00021 
00025 SawObject::SawObject()
00026 {
00027         thresholdDoubleComparation = 1.0e-6 ;
00028         widthOutputStream = 11 ;
00029         precisionOutputStream = 4 ;
00030         formatOutput = FIXED ;
00031         name = "" ;
00032 }
00033 
00037 SawObject::~SawObject()
00038 {
00039 }
00040 
00046 SawObject::SawObject( const SawObject& obj )
00047 {
00048         this->setFormatNumberOutputStream( obj.getFormatNumberOutputStream() ) ;
00049         this->setName( obj.getName() ) ;
00050         this->setPrecisionOutputStream( obj.getPrecisionOutputStream() ) ;
00051         this->setThresholdDoubleComparation( obj.getThresholdDoubleComparation() ) ;
00052         this->setWidthOutputStream( obj.getWidthOutputStream() ) ;
00053 }
00054 
00059 void SawObject::setName( string name )
00060 {
00061         this->name = name ;
00062 }
00063 
00068 string SawObject::getName() const
00069 {
00070         return name ;
00071 }
00072 
00077 void SawObject::setThresholdDoubleComparation( double threshold )
00078 {
00079         this->thresholdDoubleComparation = threshold ;
00080 }
00081 
00086 double SawObject::getThresholdDoubleComparation() const
00087 {
00088         return thresholdDoubleComparation ;
00089 }
00090 
00095 void SawObject::setWidthOutputStream( uint width )
00096 {
00097         this->widthOutputStream = width ;
00098 }
00099 
00104 uint SawObject::getWidthOutputStream() const
00105 {
00106         return widthOutputStream ;
00107 }
00108 
00113 void SawObject::setPrecisionOutputStream( uint precision )
00114 {
00115         this->precisionOutputStream = precision ;
00116 }
00117 
00122 uint SawObject::getPrecisionOutputStream() const
00123 {
00124         return precisionOutputStream ;
00125 }
00126 
00131 void SawObject::setFormatNumberOutputStream( NumberFormat formatOutput )
00132 {
00133         this->formatOutput = formatOutput ;
00134 }
00135 
00140 SawObject::NumberFormat SawObject::getFormatNumberOutputStream() const
00141 {
00142         return formatOutput ;
00143 }
00144 
00145 

Generado el Sun Jul 22 18:05:41 2007 para SAW por  doxygen 1.5.1