broker_creator Class Reference

#include <broker.hpp>

Collaboration diagram for broker_creator:

Collaboration graph
[legend]

List of all members.


Detailed Description

This is a utility class used by the broker creator macros to register object types.

Definition at line 61 of file broker.hpp.


Public Types

typedef brokered_object *(* creator_ft )(const config_record &obj_conf)
 Function type for creating objects.

Public Member Functions

 broker_creator (const gsgl::string &type_name, creator_ft create_func)
creator_ft get_create_func () const
const gsgl::stringget_type_name () const
 ~broker_creator ()

Private Attributes

const creator_ft create_func
const gsgl::string type_name

Member Typedef Documentation

typedef brokered_object*(* creator_ft)(const config_record &obj_conf)

Function type for creating objects.


Constructor & Destructor Documentation

broker_creator ( const gsgl::string type_name,
creator_ft  create_func 
)

~broker_creator (  ) 


Member Function Documentation

creator_ft get_create_func (  )  const [inline]

Definition at line 76 of file broker.hpp.

Referenced by broker::create_object().

const gsgl::string& get_type_name (  )  const [inline]


Member Data Documentation

const creator_ft create_func [private]

Definition at line 69 of file broker.hpp.

const gsgl::string type_name [private]

Definition at line 68 of file broker.hpp.


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

Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5