#include <corbo-core/console.h>
#include <corbo-core/macros.h>
#include <functional>
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_map>
Go to the source code of this file.
|
template<typename Object > |
std::shared_ptr< Object > | corbo::create_from_factory (const std::string &name) |
| Helper function to create new (derived) objects from factory. More...
|
|
◆ FACTORY_REGISTER_OBJECT
◆ FACTORY_REGISTER_OBJECT_ID
#define FACTORY_REGISTER_OBJECT_ID |
( |
|
type, |
|
|
|
base, |
|
|
|
id |
|
) |
| |
Value: Factory<base>::instance().registerObject(
corbo_STRINGIZE(type), std::make_shared<type>());
#define corbo_STRINGIZE(text)
Definition at line 135 of file factory.h.