3 #ifndef __stir_IO_write_to_file_H__ 4 #define __stir_IO_write_to_file_H__ 25 #include <boost/format.hpp> 45 template <
class DataT>
49 std::string filename_used(filename);
53 error(boost::format(
"Error writing data to file '%1%'") % filename);
Declaration of class stir::Succeeded.
Declaration of stir::error()
std::string write_to_file(const std::string &filename, const DataT &data)
Function that writes data to file using the default OutputFileFormat.
Definition: write_to_file.h:47
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42