40 #ifndef H_OGF_IMAGE_IO_IMAGE_SERIALIZER_H
41 #define H_OGF_IMAGE_IO_IMAGE_SERIALIZER_H
85 const std::string& file_name,
const Image* image
106 std::ostream& stream,
const Image* image
Base class for reference-counted objects.
virtual bool read_supported() const
Tests whether reading is implemented.
virtual Image * serialize_read(std::istream &stream)
reads an image from a stream.
virtual Image * serialize_read(const std::string &file_name)
reads an image from a file.
virtual bool serialize_write(const std::string &file_name, const Image *image)
writes an image into a file.
virtual bool write_supported() const
Tests whether writing is implemented.
virtual bool streams_supported() const
Tests whether the functions that use streams are supported.
virtual bool serialize_write(std::ostream &stream, const Image *image)
writes an image into a stream.
virtual bool binary() const
Tests whether the file format is binary or ASCII.
A smart pointer with reference-counted copy semantics.
Base class of reference-counted objects, to be used with smart pointers.
Common include file, providing basic definitions. Should be included before anything else by all head...
Global Vorpaline namespace.
SmartPointer< ImageSerializer > ImageSerializer_var
An automatic reference-counted pointer to an ImageSerializer.
Pointers with automatic reference counting.