Simplified XF 1.1.0
xf.h
1#ifndef XF_XF_H
2#define XF_XF_H
3
4#include "config/xf-config.h"
5
6//
7// What is seen only by the C++ compiler
8//
9#ifdef __cplusplus
10
11#include "xf/interface/dispatcher.h"
12
72class XF
73{
74public:
83 static void initialize(int timeInterval = 10, int argc = 0, char * argv[] = nullptr);
84
91 static int exec();
92
98 static int execOnce();
99
100
104 static bool isRunning();
105
106protected:
107 static bool isInitialized_;
108 static bool isRunning_;
109};
110
111#endif // __cplusplus
112
113//
114// What is seen by the C and C++ compiler
115//
116#ifdef __cplusplus
117extern "C" {
118#endif // __cplusplus
119
120void XF_initialize(int timeInterval);
121void XF_exec();
122void XF_execOnce();
123
124#ifdef __cplusplus
125}
126#endif // __cplusplus
127 // end of xf_core group
129#endif // XF_XF_H
Static class grouping the basic methods for the XF together.
Definition: xf.h:73
static bool isInitialized_
Changes from false to true after calling method initialize(int). Used to handle multiple calls to ini...
Definition: xf.h:107
static bool isRunning()
Returns true in case the XF is initialized and running.
Definition: xf.cpp:129
static int execOnce()
Definition: xf.cpp:123
static void initialize(int timeInterval=10, int argc=0, char *argv[]=nullptr)
Definition: xf.cpp:95
static bool isRunning_
Tells if the XF is initialized and running.
Definition: xf.h:108
static int exec()
Definition: xf.cpp:111