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: 2006/02/05 20:57:46 $
00007   Version:   $Revision: 1.4 $
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 {
00034 class Brains2HeaderBase: public std::list< std::pair<std::string, std::string> >
00035 {
00036 public:
00037 
00039   typedef Brains2HeaderBase Self;
00040   typedef std::list< std::pair<std::string, std::string> >  Superclass;
00041   typedef Self * Pointer;
00042   typedef const Self *  ConstPointer;
00043 
00048   Brains2HeaderBase();
00049 
00054   virtual ~Brains2HeaderBase();
00055 
00061   virtual void ReadBrains2Header(std::string filename);
00062 
00068   virtual void WriteBrains2Header(std::string filename) const;
00069 
00078   virtual std::ifstream & ReadBrains2Header(std::ifstream & inputstream);
00079 
00088   virtual std::ofstream & WriteBrains2Header(std::ofstream & outputstream) const;
00089 
00095   virtual void PrintSelf(std::ostream &os) const;
00096 
00103   bool DoesKeyExist(const std::string &KeyID) const;
00104 
00111   float getFloat(const std::string &KeyID) const;
00112 
00119   int getInt(const std::string &KeyID) const;
00120 
00127   std::string getString(const std::string &KeyID) const;
00128 
00129 

Generated at Sun Mar 11 23:38:59 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000