pdfobjects::CObjectFactory< Type > Class Template Reference

#include <factories.h>

List of all members.

Static Public Member Functions

static Type * getInstance ()
static Type * getInstance (const typename Type::Value &value)
static Type * getInstance (boost::shared_ptr< CPdf > pdf, const IndiRef &indirefParent, const Object &obj)
static Type * getInstance (const Object &obj)

Detailed Description

template<typename Type>
class pdfobjects::CObjectFactory< Type >

Generic factory class for cobjects.


Member Function Documentation

template<typename Type >
static Type* pdfobjects::CObjectFactory< Type >::getInstance ( const Object &  obj  )  [inline, static]

Creates Type from xpdf Object.

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

Creates Type 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:
Type instance.
template<typename Type >
static Type* pdfobjects::CObjectFactory< Type >::getInstance ( const typename Type::Value &  value  )  [inline, static]

Creates Type with given value.

Parameters:
value Value to use to initialize.
Returns:
Type instance with given value.
template<typename Type >
static Type* pdfobjects::CObjectFactory< Type >::getInstance (  )  [inline, static]

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