freControllerProfile.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: freControllerProfile.h,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 "freControllerProfile.h"
00023 
00024 #include "freConvert.h"
00025 
00026 namespace FREE
00027 {
00028 namespace CtrlProfile
00029 {
00030 
00031 ControllerProfile::
00032 ControllerProfile()
00033 {
00034 };
00035 
00036 ControllerProfile&
00037 ControllerProfile::
00038 operator = (const ControllerProfile& rProfile)
00039 {
00040   ControllerProfileBase::operator =(rProfile);
00041   m_Requirements = rProfile.Requirements();
00042 
00043   return *this;
00044 };
00045 
00046 ControllerProfile::
00047 ~ControllerProfile()
00048 {
00049   Reset();
00050 };
00051 
00052 void
00053 ControllerProfile::
00054 Reset()
00055 {
00056   ControllerProfileBase::Reset();
00057   m_Requirements.Reset();
00058 };
00059 
00060 void
00061 ControllerProfile::
00062 SubElementLoadProcessing(const std::string& rsXMLSubTag, const std::string& rsXMLSubElement, const std::string& rsXMLSubData)
00063 {
00064   if (rsXMLSubTag==cXML_CP_Requirements) m_Requirements.LoadFromString(rsXMLSubElement);
00065   else ControllerProfileBase::SubElementLoadProcessing(rsXMLSubTag,rsXMLSubElement,rsXMLSubData);
00066 };
00067 
00068 std::string
00069 ControllerProfile::
00070 SaveData(const unsigned int& iDepth, bool& bHasSubElements) const
00071 {
00072   std::string result = ControllerProfileBase::SaveData(iDepth,bHasSubElements);
00073   AddSubElement(result,&m_Requirements,iDepth);
00074   return result;
00075 };
00076 
00077 void
00078 ControllerProfile::
00079 SetNeededSubElements()
00080 {
00081   AddNeededSubElement(cXML_CP_ControllerID);
00082   AddNeededSubElement(cXML_CP_Description);
00083   AddNeededSubElement(cXML_CP_Inheritance);
00084   AddNeededSubElement(cXML_CP_Parameters);
00085   AddNeededSubElement(cXML_CP_SubComponents);
00086   AddNeededSubElement(cXML_CP_MediaMap);
00087   AddNeededSubElement(cXML_CP_Requirements);
00088 };
00089 
00090 }//end of namespace CtrlProfile
00091 }//end of namespace FREE

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