Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkBrains2HeaderBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBrains2HeaderBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-03-29 18:39:26 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkBrains2HeaderBase_h
00021 #define __itkBrains2HeaderBase_h
00022 
00023 #include "itkMacro.h"
00024 
00025 #include <string>
00026 #include <list>
00027 #include <fstream>
00028 
00029 namespace itk {
00036 class Brains2HeaderBase: public std::list< std::pair<std::string, std::string> >
00037 {
00038 public:
00039 
00041   typedef Brains2HeaderBase                                Self;
00042   typedef std::list< std::pair<std::string, std::string> > Superclass;
00043   typedef Self *                                           Pointer;
00044   typedef const Self *                                     ConstPointer;
00045 
00050   Brains2HeaderBase();
00051 
00056   virtual ~Brains2HeaderBase();
00057 
00063   virtual void ReadBrains2Header(std::string filename);
00064 
00070   virtual void WriteBrains2Header(std::string filename) const;
00071 
00080   virtual std::ifstream & ReadBrains2Header(std::ifstream & inputstream);
00081 
00090   virtual std::ofstream & WriteBrains2Header(std::ofstream & outputstream) const;
00091 
00097   virtual void PrintSelf(std::ostream &os) const;
00098 
00105   bool DoesKeyExist(const std::string &KeyID) const;
00106 
00113   float getFloat(const std::string &KeyID) const;
00114 
00121   int getInt(const std::string &KeyID) const;
00122 
00129   std::string getString(const std::string &KeyID) const;
00130 
00131 

Generated at Tue Sep 15 02:26:18 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000