2021-08-16 10:49:07 +02:00
|
|
|
#ifndef FSFW_CATCHFACTORY_H_
|
|
|
|
#define FSFW_CATCHFACTORY_H_
|
|
|
|
|
|
|
|
#include "fsfw/objectmanager/ObjectManager.h"
|
2022-02-02 10:29:30 +01:00
|
|
|
#include "fsfw/objectmanager/SystemObjectIF.h"
|
|
|
|
#include "tests/TestsConfig.h"
|
2021-08-16 10:49:07 +02:00
|
|
|
|
|
|
|
// TODO: It is possible to solve this more cleanly using a special class which
|
|
|
|
// is allowed to set the object IDs and has virtual functions.
|
|
|
|
#if FSFW_ADD_DEFAULT_FACTORY_FUNCTIONS == 1
|
|
|
|
|
|
|
|
namespace Factory {
|
2022-02-02 10:29:30 +01:00
|
|
|
/**
|
|
|
|
* @brief Creates all SystemObject elements which are persistent
|
|
|
|
* during execution.
|
|
|
|
*/
|
|
|
|
void produceFrameworkObjects(void* args);
|
|
|
|
void setStaticFrameworkObjectIds();
|
2021-08-16 10:49:07 +02:00
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
} // namespace Factory
|
2021-08-16 10:49:07 +02:00
|
|
|
|
|
|
|
#endif /* FSFW_ADD_DEFAULT_FSFW_FACTORY == 1 */
|
|
|
|
|
|
|
|
#endif /* FSFW_CATCHFACTORY_H_ */
|