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 {
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