r\Represents a unified interface for managing custom objects and factories
Definition at line 35 of file service-maker/includes/common_factory.hpp.
|
| static bool | _load (const std::string &plugin_name) |
| |
| static bool | _load (const std::string &plugin_name) |
| |
◆ ~CommonFactory() [1/2]
| virtual deepstream::CommonFactory::~CommonFactory |
( |
| ) |
|
|
virtualdefault |
◆ CommonFactory() [1/6]
| deepstream::CommonFactory::CommonFactory |
( |
const CommonFactory & |
| ) |
|
|
delete |
◆ CommonFactory() [2/6]
◆ CommonFactory() [3/6]
| deepstream::CommonFactory::CommonFactory |
( |
| ) |
|
|
protecteddefault |
◆ ~CommonFactory() [2/2]
| virtual deepstream::CommonFactory::~CommonFactory |
( |
| ) |
|
|
virtualdefault |
◆ CommonFactory() [4/6]
| deepstream::CommonFactory::CommonFactory |
( |
const CommonFactory & |
| ) |
|
|
delete |
◆ CommonFactory() [5/6]
◆ CommonFactory() [6/6]
| deepstream::CommonFactory::CommonFactory |
( |
| ) |
|
|
protecteddefault |
◆ _load() [1/2]
| static bool deepstream::CommonFactory::_load |
( |
const std::string & |
plugin_name | ) |
|
|
staticprotected |
◆ _load() [2/2]
| static bool deepstream::CommonFactory::_load |
( |
const std::string & |
plugin_name | ) |
|
|
staticprotected |
◆ addCustomFactory() [1/2]
| virtual bool deepstream::CommonFactory::addCustomFactory |
( |
CustomFactory * |
factory, |
|
|
const char * |
key |
|
) |
| |
|
pure virtual |
Add a custom factory.
Once a custom factory is added, the type of object defined within the factory can be created through common factory interface.
- Parameters
-
| [in] | factory | pointer to the factory |
| [in] | key | key used to identify the factory |
◆ addCustomFactory() [2/2]
| virtual bool deepstream::CommonFactory::addCustomFactory |
( |
CustomFactory * |
factory, |
|
|
const char * |
key |
|
) |
| |
|
pure virtual |
Add a custom factory.
Once a custom factory is added, the type of object defined within the factory can be created through common factory interface.
- Parameters
-
| [in] | factory | pointer to the factory |
| [in] | key | key used to identify the factory |
◆ createObject() [1/2]
| virtual std::unique_ptr<CustomObject> deepstream::CommonFactory::createObject |
( |
const std::string & |
factory_key, |
|
|
const std::string & |
name |
|
) |
| |
|
pure virtual |
Create a custom object from a custom factory.
- Parameters
-
| [in] | factory_key | identifier of the factory where the custom object is supported |
| [in] | name | name for the object to be created. |
◆ createObject() [2/2]
| virtual std::unique_ptr<CustomObject> deepstream::CommonFactory::createObject |
( |
const std::string & |
factory_key, |
|
|
const std::string & |
name |
|
) |
| |
|
pure virtual |
Create a custom object from a custom factory.
- Parameters
-
| [in] | factory_key | identifier of the factory where the custom object is supported |
| [in] | name | name for the object to be created. |
◆ getCustomFactory() [1/2]
| virtual CustomFactory* deepstream::CommonFactory::getCustomFactory |
( |
const char * |
factory_name | ) |
|
|
pure virtual |
Find a custom factory that supports a certan object type.
- Parameters
-
| [in] | factory_name | name of the factory |
- Returns
- Pointer of a custom factory that supports the type
◆ getCustomFactory() [2/2]
| virtual CustomFactory* deepstream::CommonFactory::getCustomFactory |
( |
const char * |
factory_name | ) |
|
|
pure virtual |
Find a custom factory that supports a certan object type.
- Parameters
-
| [in] | factory_name | name of the factory |
- Returns
- Pointer of a custom factory that supports the type
◆ getInstance() [1/2]
Acquire the reference of the singleton.
◆ getInstance() [2/2]
Acquire the reference of the singleton.
◆ operator=() [1/4]
◆ operator=() [2/4]
◆ operator=() [3/4]
◆ operator=() [4/4]
The documentation for this class was generated from the following file: