Class to create decoder corresponding to the given SaveInfo. More...
#include <CodecFactory.hpp>
Public Member Functions | |
EncoderFactory (const SaveInfo info) | |
A constructor. More... | |
~EncoderFactory () | |
A destructor. More... | |
Encoder * | getEncoder () const |
Get the encoder for the SaveInfo specified in the EncoderFactory constructor. More... | |
Class to create decoder corresponding to the given SaveInfo.
FotoSHOCKcore::IO::EncoderFactory::EncoderFactory | ( | const SaveInfo | info) |
A constructor.
The EncoderFactory constructor tries to find an encoder for the file format specified in the info parameter and creates the encoder, so that it can be used to save image under the name specified in the info parameter.
If the encoder can't be found for the requested file format, the constructor throws an IOException.
The EncoderFactory doesn't save the image. Instead, use the getEncoder() function to get the encoder that can be used to save an image.
info | class specifying the filename of the destination file and its format. |
FotoSHOCKcore::IO::EncoderFactory::~EncoderFactory | ( | ) |
A destructor.
Frees the memory occupied by the encoder.
Encoder * FotoSHOCKcore::IO::EncoderFactory::getEncoder | ( | ) | const |
Get the encoder for the SaveInfo specified in the EncoderFactory constructor.