cartobase  5.0.5
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 &)
RCObjectoperator= (const RCObject &)
virtual ~RCObject ()

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()

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

◆ registerDefaultFactory()

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

Definition at line 74 of file object_factory.h.

References carto::Object::value().

◆ registerFactory()

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

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