libnebular::PicHandlerMgr Class Reference
[Plugin API]

Used to determine Picture file type and create appropriate PicHandler. More...

#include <libnebular-plugin.hpp>

Inherited by libnebular::MgrForPicHandler< CurrPictureHandler >.

List of all members.

Public Member Functions

virtual ~PicHandlerMgr ()
virtual boost::shared_ptr
< PictureHandler
createPictureHandler () const =0
isHandleable

Determine whether file is handleable via this handler plugin.

Returns:
Verdict
virtual bool isHandleableByFileExt (Picture &pictureFile) const =0
 By check of file extension.
virtual bool isHandleableByContentMagic (Picture &pictureFile) const =0
 By check of file content magic.
virtual bool isWriteable (Picture &picture) const =0
 Whether we can write such file (actually there will be check of "opt/file/mimetype" field).

Protected Member Functions

 PicHandlerMgr ()

Static Protected Member Functions

static void determineFileExt (Picture &)
 Determine URL extension from "opt/file/url" property.
static bool haveContentMagic (Picture &pictureFile, const Blob &magicData, Integer magicFileOffset)
 Whether file with "opt/file/url" from pictureFile contains binary data magicData at file offset magicFileOffset.

Detailed Description

Used to determine Picture file type and create appropriate PicHandler.

Design note:
Will use Linux, Solaris DL library API, not ⟨glib⟩ and so on

Definition at line 129 of file libnebular-plugin.hpp.


Constructor & Destructor Documentation

libnebular::PicHandlerMgr::PicHandlerMgr (  )  [protected]

Definition at line 375 of file libnebular.cpp.

libnebular::PicHandlerMgr::~PicHandlerMgr (  )  [virtual]

Definition at line 376 of file libnebular.cpp.


Member Function Documentation

virtual boost::shared_ptr<PictureHandler> libnebular::PicHandlerMgr::createPictureHandler (  )  const [pure virtual]
void libnebular::PicHandlerMgr::determineFileExt ( Picture pic  )  [static, protected]

Determine URL extension from "opt/file/url" property.

Result will be stored as "opt/file/url-extension"

Definition at line 348 of file libnebular.cpp.

Here is the call graph for this function:

bool libnebular::PicHandlerMgr::haveContentMagic ( Picture pictureFile,
const Blob magicData,
Integer  magicFileOffset 
) [static, protected]

Whether file with "opt/file/url" from pictureFile contains binary data magicData at file offset magicFileOffset.

Definition at line 362 of file libnebular.cpp.

Here is the call graph for this function:

virtual bool libnebular::PicHandlerMgr::isHandleableByContentMagic ( Picture pictureFile  )  const [pure virtual]

By check of file content magic.

Put file URL to "opt/file/url" property.

Implemented in libnebular::MgrForPicHandler< CurrPictureHandler >.

Here is the caller graph for this function:

virtual bool libnebular::PicHandlerMgr::isHandleableByFileExt ( Picture pictureFile  )  const [pure virtual]

By check of file extension.

Put file URL to "opt/file/url" property.

Implemented in libnebular::MgrForPicHandler< CurrPictureHandler >.

Here is the caller graph for this function:

virtual bool libnebular::PicHandlerMgr::isWriteable ( Picture picture  )  const [pure virtual]

Whether we can write such file (actually there will be check of "opt/file/mimetype" field).

Put desired output "mimetype" to "opt/file/mimetype" property.

Implemented in libnebular::MgrForPicHandler< CurrPictureHandler >.

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun May 29 18:23:56 2011 for libnebular by  doxygen 1.6.3