#include "data/data.hpp"
#include "data/exception.hpp"
#include "data/global.hpp"
#include "data/string.hpp"
#include "data/dictionary.hpp"
Go to the source code of this file.
Namespaces | |
namespace | gsgl |
namespace | gsgl::data |
Classes | |
class | broker |
This class serves to broker plugin object creation and config_recorduration. More... | |
class | broker_creator |
This is a utility class used by the broker creator macros to register object types. More... | |
class | brokered_object |
Defines | |
#define | BROKER_DECLARE_CREATOR(name) static gsgl::data::brokered_object *_create_(const gsgl::data::config_record & obj_conf) { return new name(obj_conf); } static gsgl::data::broker_creator _creator_ |
#define | BROKER_DEFINE_CREATOR(name) gsgl::data::broker_creator name::_creator_(gsgl::string(#name), &name::_create_) |
Functions | |
template<typename R> | |
void | global_register_resource_aux (gsgl::data::dictionary< broker_creator *, gsgl::string > &d, broker_creator *bc) |
template<typename R> | |
void | global_unregister_resource_aux (gsgl::data::dictionary< broker_creator *, gsgl::string > &d, broker_creator *bc) |
#define BROKER_DECLARE_CREATOR | ( | name | ) | static gsgl::data::brokered_object *_create_(const gsgl::data::config_record & obj_conf) { return new name(obj_conf); } static gsgl::data::broker_creator _creator_ |
Definition at line 131 of file broker.hpp.
#define BROKER_DEFINE_CREATOR | ( | name | ) | gsgl::data::broker_creator name::_creator_(gsgl::string(#name), &name::_create_) |
Definition at line 133 of file broker.hpp.