testfactory02.h
#ifndef TESTFACTORY02_H
#define TESTFACTORY02_H
//
// What is seen only by the C++ compiler
//
#ifdef __cplusplus
#include "statemachine02.h"
class TestFactory02
{
public:
TestFactory02();
static void initialize();
static void build();
protected:
static StateMachine02 & getStaticTask();
static StateMachine02 & getDynamicTask();
};
#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 // TESTFACTORY02_H
StateMachine02
Definition: statemachine02.h:17
TestFactory02
Definition: testfactory02.h:18
TestFactory02::build
static void build()
Creates components and initializes relations.
Definition: testfactory02.cpp:32
TestFactory02::TestFactory02
TestFactory02()
Constructor.
Definition: testfactory02.cpp:16
TestFactory02::getDynamicTask
static StateMachine02 & getDynamicTask()
Returns reference to dynamically allocated instance of StateMachine02.
Definition: testfactory02.cpp:51
TestFactory02::getStaticTask
static StateMachine02 & getStaticTask()
Returns reference to static instance of StateMachine02.
Definition: testfactory02.cpp:43
TestFactory02::initialize
static void initialize()
Initializes the factory.
Definition: testfactory02.cpp:21