37 #ifndef AIMS_IO_WRITER_H 38 #define AIMS_IO_WRITER_H 62 bool write(
const T & obj,
bool ascii =
false,
63 const std::string* format = 0 );
96 inline Writer(
const std::string& filename,
107 virtual bool write(
const T & obj,
bool ascii =
false,
108 const std::string* format = 0 );
119 writer.
write( thing );
126 operator << ( aims::Writer<T> & writer,
const T & thing )
128 writer.
write( thing );
bool write(const T &obj, bool ascii=false, const std::string *format=0)
Finds the correct format and writes the object.
const std::string & fileName() const
get output file name
The class for EcatSino data write operation.
const carto::Object options() const
void setOptions(carto::Object opt)
virtual bool write(const T &obj, bool ascii=false, const std::string *format=0)
Finds the correct format and writes the object.
virtual std::string writtenObjectType() const =0
GenericWriter(const std::string &filename, carto::Object options=carto::none())
Generic writer for every format of Aims object.
virtual std::string writtenObjectDataType() const =0
MotionWriter & operator<<(MotionWriter &writer, const AffineTransformation3d &thing) __attribute__((__deprecated__("OBSOLETE")))
— OBSOLETE —
virtual std::string writtenObjectFullType() const =0
Object none()
Pointer to an empty aims::StructuringElement.
void setFileName(const std::string &fileName)
set output file name
Writer(const std::string &filename, carto::Object options=carto::none())