pdfobjects::CArrayFactory Class Reference

#include <factories.h>

List of all members.

Static Public Member Functions

static CArraygetInstance ()
static CArraygetInstance (boost::shared_ptr< CPdf > pdf, const IndiRef &indirefParent, const Object &obj)
static CArraygetInstance (const Object &obj)

Detailed Description

Factory class for CArray creation.

Use getInstance methods for instants creation.


Member Function Documentation

static CArray* pdfobjects::CArrayFactory::getInstance ( const Object &  obj  )  [inline, static]

Creates CArray from xpdf Object.

Parameters:
obj Xpdf Object instance (must by objArray).
Exceptions:
ElementBadTypeException If given object doesn't represent dictionary object.
Returns:
CArray instance.
static CArray* pdfobjects::CArrayFactory::getInstance ( boost::shared_ptr< CPdf pdf,
const IndiRef indirefParent,
const Object &  obj 
) [inline, static]

Creates CArray for specific pdf from xpdf Object.

Parameters:
pdf Pdf for which to create CArray.
indirefParent Indirect reference to nearest indirect parent.
obj Xpdf object to use for intialization.

This should be used only internaly by kernel. Instance initialized this way is not checked in cobjects routines and so nonsense information may lead to mass.
REMARK:
If you don't know what exactly these parameters mean, DON'T use this method.

Returns:
CArray instance.
static CArray* pdfobjects::CArrayFactory::getInstance (  )  [inline, static]

Creates default CArray instance.

Returns:
CArray instance with default (empty dictionary) value.

Referenced by pdfobjects::CPageAnnots::add(), and pdfobjects::utils::createObjFromXpdfObj().


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