cartobase 6.0.20
carto::ObjectFactory Class Reference

#include <cartobase/object/object_factory.h>

Inheritance diagram for carto::ObjectFactory:
Collaboration diagram for carto::ObjectFactory:

Public Types

typedef Object(*) ObjectFactoryFunction()
Public Types inherited from carto::RCObject
typedef int RefCounterType

Static Public Member Functions

static void registerFactory (const std::string &type, ObjectFactoryFunction)
template<typename T>
static void registerDefaultFactory (const std::string &type)
static Object createObject (const std::string &type)

Additional Inherited Members

Public Member Functions inherited from carto::RCObject
 RCObject ()
 RCObject (const RCObject &)
RCObject & operator= (const RCObject &)
virtual ~RCObject ()
Static Protected Member Functions inherited from carto::DefaultRefConstruction
template<class T>
static const T * release (const_ref< T > *)

Detailed Description

Definition at line 41 of file object_factory.h.

Member Typedef Documentation

◆ ObjectFactoryFunction

typedef Object(*) carto::ObjectFactory::ObjectFactoryFunction()

Definition at line 45 of file object_factory.h.

Member Function Documentation

◆ createObject()

Object carto::ObjectFactory::createObject ( const std::string & type)
static

◆ registerDefaultFactory()

template<typename T>
void carto::ObjectFactory::registerDefaultFactory ( const std::string & type)
inlinestatic

Definition at line 74 of file object_factory.h.

Referenced by registerFactory().

◆ registerFactory()

void carto::ObjectFactory::registerFactory ( const std::string & type,
ObjectFactoryFunction  )
static

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