37 #ifndef AIMS_IO_SPMW_H 38 #define AIMS_IO_SPMW_H 89 std::string res = name;
91 if ( res.length() > 4 )
92 ext = res.substr(
int(res.length() - 4), 4 );
93 if (ext ==
".hdr" || ext ==
".img")
94 res = res.substr( 0, res.length() - 4 );
99 template <
class T>
inline
The class for EcatSino data write operation.
void write(const AimsData< T > &thing)
Write the data with "name" file name to disk.
SpmWriter(const std::string &name)
std::string removeExtension(const std::string &name)
Return a name without .hdr or .img extension.
The template class for SPM write operation.