pdfobjects::CDictFactory Class Reference

#include <factories.h>

List of all members.

Static Public Member Functions

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

Detailed Description

Factory class for CDict creation.

Use getInstance methods for instants creation.


Member Function Documentation

static CDict* pdfobjects::CDictFactory::getInstance ( const Object &  obj  )  [inline, static]

Creates CDict from xpdf Object.

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

Creates CDict for specific pdf from xpdf Object.

Parameters:
pdf Pdf for which to create CDict.
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:
CDict instance.
static CDict* pdfobjects::CDictFactory::getInstance (  )  [inline, static]

Creates default CDict instance.

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

Referenced by pdfobjects::utils::createObjFromXpdfObj(), and gui::Base::createReal().


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