00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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