#include <pxl_docfactory.h>

Public Member Functions | |
| virtual AutoPtr< Doc > | load (Storage *inStorage, CredentialProvider *inCredentialProvider=NULL, HttpManager *inManager=NULL)=0 |
| virtual AutoPtr< Doc > | loadAlternativeDoc (Storage *inStorage)=0 |
| virtual void | registerDocLoader (DocLoaderFunc inDocLoader)=0 |
| virtual void | registerDefaultDocLoaders ()=0 |
| virtual AutoPtr< PixelLiveSystem > | getPixelLiveSystem () const =0 |
| virtual AutoPtr< DocFactory > | duplicate () const =0 |
or you can also use registerDefaultDocLoaders of this class.
DocFactory is also designed to deal with the files that requires authentication before loading it, for more information, see Open the Image Files that Requires Authentication.
You can also load PFZ thumbnail and metadata information by loadAlternativeDoc function.
Definition at line 75 of file pxl_docfactory.h.
| virtual AutoPtr<Doc> Celartem::DocFactory::load | ( | Storage * | inStorage, | |
| CredentialProvider * | inCredentialProvider = NULL, |
|||
| HttpManager * | inManager = NULL | |||
| ) | [pure virtual] |
This function load an Doc instance from the specified Storage instance.
| inStorage | The storage which contains images. | |
| inCredentialProvider | If some authentication process is required to open the file, this instance provides the required credential information for it. For more information, see Open the Image Files that Requires Authentication. | |
| inManager | If the authentication process requires network connection, it should be specified. If no HttpManager instance is specified and the authentication requires network connection, this function create a HttpManager instance automatically. |
| virtual AutoPtr<Doc> Celartem::DocFactory::loadAlternativeDoc | ( | Storage * | inStorage | ) | [pure virtual] |
This function load an alternative Doc instance from the specified Storage instance if available. The function is usually used with PFZ files (or secure storage files) that contains unprotected information (that can be obtained without authentication).
Currently, only PFZ 2.4 files are supported and if the specified Storage instance does not contain PFZ file, this function throws an exception.
| inStorage | The storage which contains images. |
| virtual void Celartem::DocFactory::registerDocLoader | ( | DocLoaderFunc | inDocLoader | ) | [pure virtual] |
This function registers the specified image format loader function to this DocFactory instance.
Re-registration of the same DocLoaderFunc is accepted and it does not throw any errors.
| inDocLoader | Pointer to the image format loader function. |
| virtual void Celartem::DocFactory::registerDefaultDocLoaders | ( | ) | [pure virtual] |
This function registers all the system defined image format loaders. Currently, PixelLive SDK supports the following formats by default:
| virtual AutoPtr<PixelLiveSystem> Celartem::DocFactory::getPixelLiveSystem | ( | ) | const [pure virtual] |
This function returns the PixelLiveSystem instance that is associated with this DocFactory instance.
| virtual AutoPtr<DocFactory> Celartem::DocFactory::duplicate | ( | ) | const [pure virtual] |
This function duplicates the DocFactory instance.