freParameterLayer.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freParameterLayer.cxx,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 #include "freParameterLayer.h"
00023 
00024 #include "freConvert.h"
00025 
00026 namespace FREE
00027 {
00028 
00032 
00033 
00034 
00035 ParameterLayer&
00036 ParameterLayer::
00037 operator = (const ParameterLayer& parameterLayer)
00038 {
00039   if (this == &parameterLayer) return *this;
00040 
00041   m_Values.assign(parameterLayer.m_Values.begin(),parameterLayer.m_Values.end());
00042 
00043   return *this;
00044 };
00045 
00046 ParameterLayer::
00047 ParameterLayer(const ValueCountType iValueCount, const std::string& sNewValue) : XMLValueSet(iValueCount, sNewValue)
00048 {
00049   this->SetXMLTag(FREE::cXML_ParameterLayer);
00050 };
00051 
00052 ParameterLayer::
00053 ParameterLayer() : XMLValueSet(1,"")
00054 {
00055   this->SetXMLTag(FREE::cXML_ParameterLayer);
00056 };
00057 
00058 ParameterLayer::Pointer
00059 ParameterLayer::
00060 New(const ValueCountType iValueCount, const std::string& sNewValue)
00061 {
00062   Pointer smartPtr;
00063   ParameterLayer *rawPtr = ::itk::ObjectFactory<ParameterLayer>::Create();
00064   if(rawPtr == NULL)
00065   {
00066     rawPtr = new ParameterLayer;
00067   }
00068   smartPtr = rawPtr;
00069   rawPtr->UnRegister();
00070   rawPtr->Reset(iValueCount,sNewValue);
00071   return smartPtr;
00072 }
00073 
00074 }//end of namespace FREE

Generated at Sat Oct 13 16:56:02 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000