18 #ifndef __itkTransformIOBase_h
19 #define __itkTransformIOBase_h
45 template<
typename TScalar>
70 itkSetStringMacro(FileName);
71 itkGetStringMacro(FileName);
75 virtual void Read() = 0;
78 virtual void Write() = 0;
98 itkSetMacro(AppendMode,
bool);
99 itkGetConstMacro(AppendMode,
bool);
100 itkBooleanMacro(AppendMode);
113 itkGenericExceptionMacro(<<
"Unknown ScalarType" <<
typeid(
ScalarType).name());
119 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
121 void OpenStream(std::ofstream & outputStream,
bool binary);
134 itkGenericExceptionMacro(<<
"Unknown ScalarType" <<
typeid(
ScalarType).name());
145 if(inputTransformName.find(
"float") == std::string::npos)
147 const std::string::size_type begin = inputTransformName.find(
"double");
148 inputTransformName.replace(begin, 6,
"float");
158 if(inputTransformName.find(
"double") == std::string::npos)
160 const std::string::size_type begin = inputTransformName.find(
"float");
161 inputTransformName.replace(begin, 5,
"double");
166 inline const std::string
170 return std::string(
"float");
174 inline const std::string
178 return std::string(
"double");
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkTransformIOBase.hxx"
190 #endif // __itkTransformIOBase.h
itk::TransformIOBaseTemplate< double > TransformIOBase
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
Base class for most ITK classes.