#include <pdfoperators.h>
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 |
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.
| 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.
| 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().
| shared_ptr< PdfOperator > pdfobjects::InlineImageCompositePdfOperator::clone | ( | ) | [protected, virtual] |
Clone this object.
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.
| 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.
| 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.
Reimplemented from pdfobjects::CompositePdfOperator.
| virtual void pdfobjects::InlineImageCompositePdfOperator::getStringRepresentation | ( | std::string & | str | ) | const [virtual] |
Get the string representation of this operator.
| str | String that will hold the representation of this operator. |
Reimplemented from pdfobjects::CompositePdfOperator.
boost::shared_ptr<CInlineImage> pdfobjects::InlineImageCompositePdfOperator::_inlineimage [private] |
Stream representing inline image.
Referenced by clone(), and getParameters().
const char* pdfobjects::InlineImageCompositePdfOperator::_opBegin [private] |
Text representing the beginning operator.
Referenced by clone(), and getOperatorName().
const char* pdfobjects::InlineImageCompositePdfOperator::_opEnd [private] |
Text representing the ending operator.
Referenced by clone().