freStatisticValue.h

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: freStatisticValue.h,v $
00007   Language:  C++
00008 
00009 
00010   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00011   Institute for Medical Biometry and Informatics, University of Heidelberg,
00012   Germany). All rights reserved.
00013   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00014   for details.
00015 
00016      This software is distributed WITHOUT ANY WARRANTY; without even 
00017      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00018      PURPOSE.  See the above copyright notices for more information.
00019 
00020 =========================================================================*/
00021 #ifndef __freStatisticValue_h
00022 #define __freStatisticValue_h
00023 
00024 #include "freStatisticValueDefinition.h"
00025 
00026 namespace FREE
00027 {
00028 
00029 freXMLTagMacro(StatisticValue, "freStat:Value");
00030 
00039 class StatisticValue: public XMLStreamObject
00040 {
00041 public:
00042   typedef StatisticValueDefinition::IDType ReferenceIDType;
00043   static const ReferenceIDType cUndefinedRef;
00044 
00045   std::string GetValue() const;
00046   void SetValue(const std::string& sValue);
00047 
00048   ReferenceIDType GetReferenceID() const;
00049   void SetReferenceID(const ReferenceIDType& refID);
00050 
00052   virtual StatisticValue& operator = (const StatisticValue& value);
00053 
00055   StatisticValue(const std::string& sValue, const ReferenceIDType& refID = cUndefinedRef);
00056 
00058   StatisticValue( const StatisticValue& value);
00059 
00061   virtual void Reset();
00062 
00063 protected:
00065   virtual void SubElementLoadProcessing(const std::string& rsXMLSubTag, const std::string& rsXMLSubElement, const std::string& rsXMLSubData);
00066 
00068   virtual std::string SaveData(const unsigned int& iDepth, bool& bHasSubElements) const;
00069 
00071   virtual void AttributesLoadProcessing(const AttributesType& rAttributes);
00072 
00074   virtual void SaveAttributes(AttributesSaveListType& rAttributes) const; 
00075 
00077   std::string m_sValue;
00078   
00080   ReferenceIDType m_RefID;
00081 };
00082 
00083 } //end of namespace FREE
00084 
00085 #endif

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