![]() |
Orfeo Toolbox
3.16
|
#include <itkBrains2HeaderBase.h>
Inheritance diagram for itk::Brains2HeaderBase:
Collaboration diagram for itk::Brains2HeaderBase:Public Types | |
| typedef const Self * | ConstPointer |
| typedef Self * | Pointer |
| typedef Brains2HeaderBase | Self |
| typedef std::list< std::pair < std::string, std::string > > | Superclass |
Public Member Functions | |
| Brains2HeaderBase () | |
| virtual | ~Brains2HeaderBase () |
| void | ClearHeader (void) |
| bool | DoesKeyExist (const std::string &KeyID) const |
| float | getFloat (const std::string &KeyID) const |
| int | getInt (const std::string &KeyID) const |
| std::string | getString (const std::string &KeyID) const |
| virtual void | PrintSelf (std::ostream &os) const |
| virtual void | ReadBrains2Header (std::string filename) |
| virtual std::ifstream & | ReadBrains2Header (std::ifstream &inputstream) |
| virtual void | WriteBrains2Header (std::string filename) const |
| virtual std::ofstream & | WriteBrains2Header (std::ofstream &outputstream) const |
Public Attributes | |
| T | elements |
| STL member. More... | |
Protected Member Functions | |
| virtual std::string | GetHeaderBeginTag (void) const =0 |
| virtual std::string | GetHeaderEndTag (void) const =0 |
Protected Attributes | |
| std::list< Brains2HeaderBase * > | m_Child |
An abstract class to define b2 header information. This just adds file reading and writing routines to the standard STL std::list< std::pair<std::string, std::string> >
Definition at line 36 of file itkBrains2HeaderBase.h.
| typedef const Self* itk::Brains2HeaderBase::ConstPointer |
Definition at line 43 of file itkBrains2HeaderBase.h.
| typedef Self* itk::Brains2HeaderBase::Pointer |
Definition at line 42 of file itkBrains2HeaderBase.h.
Standard class typedefs.
Definition at line 40 of file itkBrains2HeaderBase.h.
| typedef std::list< std::pair<std::string, std::string> > itk::Brains2HeaderBase::Superclass |
Definition at line 41 of file itkBrains2HeaderBase.h.
| itk::Brains2HeaderBase::Brains2HeaderBase | ( | ) |
Default constructor
Definition at line 27 of file itkBrains2HeaderBase.cxx.
|
virtual |
Default destructor
Definition at line 31 of file itkBrains2HeaderBase.cxx.
References ClearHeader().
| void itk::Brains2HeaderBase::ClearHeader | ( | void | ) |
A function to clear the header of all values
Definition at line 48 of file itkBrains2HeaderBase.cxx.
References m_Child.
Referenced by itk::Brains2MaskImageIO::CanReadFile(), and ~Brains2HeaderBase().
| bool itk::Brains2HeaderBase::DoesKeyExist | ( | const std::string & | KeyID | ) | const |
A funtion to determine if a tag exists
| KeyID |
Definition at line 158 of file itkBrains2HeaderBase.cxx.
References m_Child.
Referenced by itk::Brains2MaskImageIO::CanReadFile().
| float itk::Brains2HeaderBase::getFloat | ( | const std::string & | KeyID | ) | const |
A function to return the value associated with a key as a floating point number.
| KeyID | A string that identifies the desired key. |
Definition at line 212 of file itkBrains2HeaderBase.cxx.
References getString().
Referenced by itk::Brains2MaskImageIO::CanReadFile().
|
protectedpure virtual |
Implemented in itk::Brains2IPLHeaderInfo, and itk::Brains2MaskHeaderInfo.
|
protectedpure virtual |
Implemented in itk::Brains2IPLHeaderInfo, and itk::Brains2MaskHeaderInfo.
Referenced by ReadBrains2Header().
| int itk::Brains2HeaderBase::getInt | ( | const std::string & | KeyID | ) | const |
A function to return the value associated with a key as an integer number.
| KeyID | A string that identifies the desired key. |
Definition at line 222 of file itkBrains2HeaderBase.cxx.
References getString().
Referenced by itk::Brains2MaskImageIO::CanReadFile().
| std::string itk::Brains2HeaderBase::getString | ( | const std::string & | KeyID | ) | const |
A function to return the value associated with a key as a string.
| KeyID | A string that identifies the desired key. |
Definition at line 184 of file itkBrains2HeaderBase.cxx.
References m_Child.
Referenced by itk::Brains2MaskImageIO::CanReadFile(), getFloat(), and getInt().
|
virtual |
A routine for printing Brains2 header information to a standard stream
| os | The stream to print to |
Definition at line 139 of file itkBrains2HeaderBase.cxx.
References m_Child.
|
virtual |
A routine for reading Brains2 header information from a file
| filename | The name of the file to read header information from |
Definition at line 36 of file itkBrains2HeaderBase.cxx.
Referenced by itk::Brains2MaskImageIO::CanReadFile().
|
virtual |
A routine for reading Brains2 header information from a file
| inputstream | The file stream to read from. |
Definition at line 76 of file itkBrains2HeaderBase.cxx.
References itk::Brains2HeaderFactory::CreateBrains2HeaderReader(), GetHeaderEndTag(), m_Child, NULL, and itk::value_type().
|
virtual |
A routine for writing Brains2 header information from a file
| filename | The name of the file to write header information to |
Definition at line 64 of file itkBrains2HeaderBase.cxx.
|
virtual |
A routine for writing Brains2 header information from a file
| outputstream | The file stream to write to. |
Definition at line 135 of file itkBrains2HeaderBase.cxx.
|
inherited |
STL member.
|
protected |
Definition at line 128 of file itkBrains2HeaderBase.h.
Referenced by ClearHeader(), DoesKeyExist(), getString(), PrintSelf(), and ReadBrains2Header().