#include <broker.hpp>
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::string & | get_type_name () const |
~broker_creator () | |
Private Attributes | |
const creator_ft | create_func |
const gsgl::string | type_name |
typedef brokered_object*(* creator_ft)(const config_record &obj_conf) |
Function type for creating objects.
broker_creator | ( | const gsgl::string & | type_name, | |
creator_ft | create_func | |||
) |
Definition at line 121 of file broker.cpp.
References assert, broker::global_instance(), countable::is_empty(), and global_register::register_resource().
~broker_creator | ( | ) |
Definition at line 130 of file broker.cpp.
References broker::global_instance(), and global_register::unregister_resource().
creator_ft get_create_func | ( | ) | const [inline] |
const gsgl::string& get_type_name | ( | ) | const [inline] |
Definition at line 75 of file broker.hpp.
Referenced by gsgl::data::global_register_resource_aux(), and gsgl::data::global_unregister_resource_aux().
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.