libnebular::PictureHandler Class Reference
[Plugin API]

"Plugin". More...

#include <libnebular-plugin.hpp>

Inherited by libnebular::BmpPictureHandler, and libnebular::JpegPictureHandler.

List of all members.

Public Member Functions

virtual void setPicture (Picture &newPic)=0
 Attaches Picture.
 PictureHandler ()
virtual ~PictureHandler ()
virtual void readFileInfo ()=0
virtual void readBm ()=0
virtual void write ()=0

Protected Member Functions

 PictureHandler (const PictureHandler &)
 Not CopyConstructible.
PictureHandleroperator= (const PictureHandler &)
 Not Assignable.

Protected Attributes

boost::shared_ptr< Picturepic
 Picture attached

Detailed Description

"Plugin".

It handles Picture, so let's call it PictureHandler

Note:
At file read and write we'll use intermediate bitmaps stored fully in memory.

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


Constructor & Destructor Documentation

libnebular::PictureHandler::PictureHandler ( const PictureHandler  )  [protected]

Not CopyConstructible.

libnebular::PictureHandler::PictureHandler (  ) 

Definition at line 329 of file libnebular.cpp.

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

Picture manages its handler - so, there cannot be situation when handler is destroyed but Picture still have it attached

Definition at line 341 of file libnebular.cpp.


Member Function Documentation

PictureHandler& libnebular::PictureHandler::operator= ( const PictureHandler  )  [protected]

Not Assignable.

virtual void libnebular::PictureHandler::readBm (  )  [pure virtual]
virtual void libnebular::PictureHandler::readFileInfo (  )  [pure virtual]
void libnebular::PictureHandler::setPicture ( Picture newPic  )  [pure virtual]

Attaches Picture.

Note:
Have "definition" to be used in descendants: that does all except setting "handler" property
Design note:
virtual to make possible to set handler identifier to handleable Picture.
Note:
Have "body" for pure virtual function

Implemented in libnebular::BmpPictureHandler, and libnebular::JpegPictureHandler.

Definition at line 334 of file libnebular.cpp.

virtual void libnebular::PictureHandler::write (  )  [pure virtual]

Member Data Documentation

boost::shared_ptr<Picture> libnebular::PictureHandler::pic [protected]

Picture attached

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


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