xf.h
#ifndef XF_XF_H
#define XF_XF_H
#include "config/xf-config.h"
//
// What is seen only by the C++ compiler
//
#ifdef __cplusplus
#include "xf/interface/dispatcher.h"
class XF
{
public:
static void initialize(int timeInterval = 10, int argc = 0, char * argv[] = nullptr);
static int exec();
static int execOnce();
static bool isRunning();
protected:
static bool isInitialized_;
static bool isRunning_;
};
#endif // __cplusplus
//
// What is seen by the C and C++ compiler
//
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void XF_initialize(int timeInterval);
void XF_exec();
void XF_execOnce();
#ifdef __cplusplus
}
#endif // __cplusplus
// end of xf_core group
#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