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
72 class XF
73{
74 public:
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
106 protected:
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
117 extern "C" {
118#endif // __cplusplus
119
120 void XF_initialize(int timeInterval);
121 void XF_exec();
122 void XF_execOnce();
123
124#ifdef __cplusplus
125}
126#endif // __cplusplus
127 // end of xf_core group
129#endif // XF_XF_H
XF
Static class grouping the basic methods for the XF together.
Definition: xf.h:73
XF::isInitialized_
static bool isInitialized_
Changes from false to true after calling method initialize(int). Used to handle multiple calls to ini...
Definition: xf.h:107
XF::isRunning
static bool isRunning()
Returns true in case the XF is initialized and running.
Definition: xf.cpp:129
XF::execOnce
static int execOnce()
Definition: xf.cpp:123
XF::initialize
static void initialize(int timeInterval=10, int argc=0, char *argv[]=nullptr)
Definition: xf.cpp:95
XF::isRunning_
static bool isRunning_
Tells if the XF is initialized and running.
Definition: xf.h:108
XF::exec
static int exec()
Definition: xf.cpp:111