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 template class for SPM write operation.
SpmWriter(const std::string &name)
void write(const AimsData< T > &thing)
Write the data with "name" file name to disk.
std::string removeExtension(const std::string &name)
Return a name without .hdr or .img extension.
The class for EcatSino data write operation.
AIMSDATA_API PovWriter< D, T > & operator<<(PovWriter< D, T > &writer, const AimsTimeSurface< D, T > &thing)