Orfeo Toolbox  3.16
itkBrains2HeaderBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkBrains2HeaderBase.h,v $
5  Language: C++
6  Date: $Date: 2007-03-29 18:39:26 $
7  Version: $Revision: 1.6 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  Portions of this code are covered under the VTK copyright.
13  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14 
15  This software is distributed WITHOUT ANY WARRANTY; without even
16  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17  PURPOSE. See the above copyright notices for more information.
18 
19 =========================================================================*/
20 #ifndef __itkBrains2HeaderBase_h
21 #define __itkBrains2HeaderBase_h
22 
23 #include "itkMacro.h"
24 
25 #include <string>
26 #include <list>
27 #include <fstream>
28 
29 namespace itk {
36 class Brains2HeaderBase: public std::list< std::pair<std::string, std::string> >
37 {
38 public:
41  typedef std::list< std::pair<std::string, std::string> > Superclass;
42  typedef Self * Pointer;
43  typedef const Self * ConstPointer;
53  virtual ~Brains2HeaderBase();
59  virtual void ReadBrains2Header(std::string filename);
65  virtual void WriteBrains2Header(std::string filename) const;
74  virtual std::ifstream & ReadBrains2Header(std::ifstream & inputstream);
83  virtual std::ofstream & WriteBrains2Header(std::ofstream & outputstream) const;
84 
90  virtual void PrintSelf(std::ostream &os) const;
97  bool DoesKeyExist(const std::string &KeyID) const;
104  float getFloat(const std::string &KeyID) const;
111  int getInt(const std::string &KeyID) const;
118  std::string getString(const std::string &KeyID) const;
124  void ClearHeader(void);
125 protected:
126  virtual std::string GetHeaderBeginTag(void) const= 0;
127  virtual std::string GetHeaderEndTag(void) const = 0;
128  std::list<Brains2HeaderBase *> m_Child;
129 private:
130 };
131 } //End of namespace itk
132 #endif // __itkBrains2HeaderBase_h

Generated at Sat May 18 2013 23:31:53 for Orfeo Toolbox with doxygen 1.8.3.1