XF Test Bench 3.3

testfactory02.h
1#ifndef TESTFACTORY02_H
2#define TESTFACTORY02_H
3
4//
5// What is seen only by the C++ compiler
6//
7#ifdef __cplusplus
8
9#include "statemachine02.h"
10
17 class TestFactory02
18{
19 public:
20 TestFactory02();
21
22 static void initialize();
23 static void build();
24
25 protected:
26 static StateMachine02 & getStaticTask();
27 static StateMachine02 & getDynamicTask();
28};
29
30#endif // __cplusplus
31
32//
33// What is seen by the C and C++ compiler
34//
35#ifdef __cplusplus
36 extern "C" {
37#endif // __cplusplus
38
39 void Factory_initialize();
40 void Factory_build();
41
42#ifdef __cplusplus
43}
44#endif // __cplusplus
45#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