OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenAB::KeyValueItemFactory Class Referenceabstract

Factory for creating KeyValueItem object. More...

#include <PIMCalendarItem.hpp>

Public Member Functions

 KeyValueItemFactory ()
 
virtual ~KeyValueItemFactory ()
 

Static Public Member Functions

static KeyValueItemcreateItem (const std::string &componentType)
 creates KeyValueItem that can be used for parsing given component type More...
 
static void registerFactory (KeyValueItemFactory *factory, const std::string &componentType)
 Registers factory for given component type. More...
 

Protected Member Functions

virtual KeyValueItemcreateItem ()=0
 

Detailed Description

Factory for creating KeyValueItem object.

Constructor & Destructor Documentation

OpenAB::KeyValueItemFactory::KeyValueItemFactory ( )
inline
virtual OpenAB::KeyValueItemFactory::~KeyValueItemFactory ( )
inlinevirtual

Member Function Documentation

KeyValueItem * OpenAB::KeyValueItemFactory::createItem ( const std::string &  componentType)
static

creates KeyValueItem that can be used for parsing given component type

Parameters
[in]componentTypename of component
Returns
new KeyValueItem for given componentType, if there is no special class registered for handling given component type default one (KeyValueItem) will be returned.
virtual KeyValueItem* OpenAB::KeyValueItemFactory::createItem ( )
protectedpure virtual
void OpenAB::KeyValueItemFactory::registerFactory ( KeyValueItemFactory factory,
const std::string &  componentType 
)
static

Registers factory for given component type.

Parameters
[in]factoryto be registered
[in]componenttype for which factory should be registered

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