This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
XF/test-bench/test1/src/app/testfactory01.h
2023-09-19 15:59:49 +02:00

46 lines
886 B
C++

#ifndef TESTFACTORY01_H
#define TESTFACTORY01_H
//
// What is seen only by the C++ compiler
//
#ifdef __cplusplus
#include "statemachine01.h"
/**
* \ingroup test01
*
* Factory creating all objects used in test1.
*
*/
class TestFactory01
{
public:
TestFactory01(); ///< Constructor
static void initialize(); ///< Initializes the factory
static void build(); ///< Creates components and initializes relations
protected:
static StateMachine01 task01_; ///< First instance of StateMachine01
static StateMachine01 task02_; ///< Second instance of StateMachine01
};
#endif // __cplusplus
//
// What is seen by the C and C++ compiler
//
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void Factory_initialize();
void Factory_build();
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // TESTFACTORY01_H