Class to find a decoder that can be used to decode a file. More...
#include <CodecFactory.hpp>
Public Member Functions | |
DecoderFactory (const std::string fileName) | |
A constructor. More... | |
~DecoderFactory () | |
A destructor. More... | |
Decoder * | getDecoder () const |
Get the decoder for the file specified in the DecoderFactory constructor. More... | |
Class to find a decoder that can be used to decode a file.
FotoSHOCKcore::IO::DecoderFactory::DecoderFactory | ( | const std::string | fileName) |
A constructor.
The DecoderFactory constructor tries to find a decoder, that is able to decode the file specified by fileName.
The DecoderFactory doesn't load the image. Instead use the getDecoder() function to get the decoder and use this decoder to load the image.
If there is no such decoder, an IOException is thrown.
fileName | name of the file to load. |
FotoSHOCKcore::IO::DecoderFactory::~DecoderFactory | ( | ) |
A destructor.
Frees the memory occupied by the decoder.
Decoder * FotoSHOCKcore::IO::DecoderFactory::getDecoder | ( | ) | const |
Get the decoder for the file specified in the DecoderFactory constructor.