#include <image.hpp>
Collaboration diagram for Exiv2::ImageFactory:
Public Member Functions | |
Manipulators | |
void | registerImage (Image::Type type, NewInstanceFct newInst, IsThisTypeFct isType) |
Register image type together with its function pointers. | |
Accessors | |
Image::AutoPtr | open (const std::string &path) const |
Create an Image of the appropriate type by opening the specified file. File type is derived from the contents of the file. | |
Image::AutoPtr | create (Image::Type type, const std::string &path) const |
Create an Image of the requested type by creating a new file. If the file already exists, it will be overwritten. | |
Image::Type | getType (const std::string &path) const |
Returns the image type of the provided file. | |
Static Public Member Functions | |
ImageFactory & | instance () |
Get access to the image factory. |
Creates an instance of the image of the requested type. The factory is implemented as a singleton, which can be accessed only through the static member function instance().
|
Create an Image of the requested type by creating a new file. If the file already exists, it will be overwritten.
|
|
Returns the image type of the provided file.
|
|
Get access to the image factory. Clients access the image factory exclusively through this method. |
|
Create an Image of the appropriate type by opening the specified file. File type is derived from the contents of the file.
|
|
Register image type together with its function pointers. The image factory creates new images calling their associated function pointer. Additional images can be added by registering new type and function pointers. If called for a type that already exists in the list, the corresponding prototype is replaced.
|