pdfobjects::InlineImageCompositePdfOperator Class Reference

#include <pdfoperators.h>

Inheritance diagram for pdfobjects::InlineImageCompositePdfOperator:
pdfobjects::CompositePdfOperator pdfobjects::PdfOperator ListItem< PdfOperator >

List of all members.

Public Member Functions

 InlineImageCompositePdfOperator (boost::shared_ptr< CInlineImage > im, const char *opBegin="BI", const char *opEnd="EI")
virtual size_t getParametersCount () const
virtual void getParameters (Operands &opers) const
virtual void getStringRepresentation (std::string &str) const
virtual void getOperatorName (std::string &first) const

Protected Member Functions

virtual boost::shared_ptr
< PdfOperator
clone ()

Private Attributes

const char * _opBegin
const char * _opEnd
boost::shared_ptr< CInlineImage_inlineimage

Detailed Description

Inline image pdf operator. This is not a real composite but we can represent it as one. This object is special. It is different than every other pdf operator.

This is an implementation of the Composite design pattern where leaves and composites share the same interface.

See also:
PdfOperator, CompositePdfOperator

Constructor & Destructor Documentation

pdfobjects::InlineImageCompositePdfOperator::InlineImageCompositePdfOperator ( boost::shared_ptr< CInlineImage im,
const char *  opBegin = "BI",
const char *  opEnd = "EI" 
)

Constructor. Create it as a standalone object. Prev and Next are not valid.

Parameters:
opBegin_ Start operator name text representation.
opEnd_ End operator name text representation.
im_ Stream representing inline image.

References debug::DBG_DBG, and utilsPrintDbg.

Referenced by clone().


Member Function Documentation

shared_ptr< PdfOperator > pdfobjects::InlineImageCompositePdfOperator::clone (  )  [protected, virtual]

Clone this object.

Returns:
New clone.

Implements pdfobjects::CompositePdfOperator.

References _inlineimage, _opBegin, _opEnd, and InlineImageCompositePdfOperator().

virtual void pdfobjects::InlineImageCompositePdfOperator::getOperatorName ( std::string &  first  )  const [inline, virtual]

Get the string operator name.

Parameters:
first String that will hold operator name.

Implements pdfobjects::CompositePdfOperator.

References _opBegin.

void pdfobjects::InlineImageCompositePdfOperator::getParameters ( Operands container  )  const [virtual]

Get the parameters used with this operator.

Parameters:
container Will be used to store parameters.

Reimplemented from pdfobjects::CompositePdfOperator.

References _inlineimage.

virtual size_t pdfobjects::InlineImageCompositePdfOperator::getParametersCount (  )  const [inline, virtual]

Return the number of parameters.

Returns:
Number of parameters.

Reimplemented from pdfobjects::CompositePdfOperator.

virtual void pdfobjects::InlineImageCompositePdfOperator::getStringRepresentation ( std::string &  str  )  const [virtual]

Get the string representation of this operator.

Parameters:
str String that will hold the representation of this operator.

Reimplemented from pdfobjects::CompositePdfOperator.


Member Data Documentation

Stream representing inline image.

Referenced by clone(), and getParameters().

Text representing the beginning operator.

Referenced by clone(), and getOperatorName().

Text representing the ending operator.

Referenced by clone().


The documentation for this class was generated from the following files: