remove weird prod callback
This commit is contained in:
parent
176f243194
commit
cdbf20bae7
|
@ -16,11 +16,6 @@ ObjectManager* ObjectManager::instance() {
|
||||||
return objManagerInstance;
|
return objManagerInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectManager::setObjectFactoryFunction(produce_function_t objFactoryFunc, void* factoryArgs) {
|
|
||||||
this->objectFactoryFunction = objFactoryFunc;
|
|
||||||
this->factoryArgs = factoryArgs;
|
|
||||||
}
|
|
||||||
|
|
||||||
ObjectManager::ObjectManager() = default;
|
ObjectManager::ObjectManager() = default;
|
||||||
|
|
||||||
ObjectManager::~ObjectManager() {
|
ObjectManager::~ObjectManager() {
|
||||||
|
@ -89,7 +84,6 @@ void ObjectManager::initialize() {
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
objectFactoryFunction(factoryArgs);
|
|
||||||
ReturnValue_t result = returnvalue::FAILED;
|
ReturnValue_t result = returnvalue::FAILED;
|
||||||
uint32_t errorCount = 0;
|
uint32_t errorCount = 0;
|
||||||
for (auto const& it : objectList) {
|
for (auto const& it : objectList) {
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
*/
|
*/
|
||||||
class ObjectManager : public ObjectManagerIF {
|
class ObjectManager : public ObjectManagerIF {
|
||||||
public:
|
public:
|
||||||
using produce_function_t = void (*)(void* args);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the single instance of TaskFactory.
|
* Returns the single instance of TaskFactory.
|
||||||
|
@ -30,8 +29,6 @@ class ObjectManager : public ObjectManagerIF {
|
||||||
*/
|
*/
|
||||||
static ObjectManager* instance();
|
static ObjectManager* instance();
|
||||||
|
|
||||||
void setObjectFactoryFunction(produce_function_t prodFunc, void* args);
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T* get(object_id_t id);
|
T* get(object_id_t id);
|
||||||
|
|
||||||
|
@ -54,8 +51,6 @@ class ObjectManager : public ObjectManagerIF {
|
||||||
* @param The id of the object to be created.
|
* @param The id of the object to be created.
|
||||||
* @return Returns a pointer to the newly created object or NULL.
|
* @return Returns a pointer to the newly created object or NULL.
|
||||||
*/
|
*/
|
||||||
produce_function_t objectFactoryFunction = nullptr;
|
|
||||||
void* factoryArgs = nullptr;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObjectManager();
|
ObjectManager();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user