#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "Listener.h" #include "EventSender.h" #include "TimeStampedEvent.h" #include "PolymorphEvent.h" #include #include #include #include #include #define CLIEVER #include "mdcommon.h" #ifdef MD_MAND #include #endif #include "cdEvents.h" #include "mdCommander.h" #include "mdBehavior.h" #include "mdObservable.h" #include "mdState.h" #define CD_EPOCH date() #define CD_GLOBAL_SIZE 4096 #define CD_LOCK_FILE "auc-cd.lock" #define CD_NAME DACLIPS_APP " Cliever" #define CD_VERSION "1.1" #define CD_REFRESH MD_HEARTBEAT // default milliseconds between telemetry frame updates #define CD_MAX_DEVICE 4 // including ourselves #include "clientDaemonConfig.h" typedef std::map ObservablesOfInterest; typedef std::map ODEsOfInterest; #include "cdLogger.h" class cdDataLayer; class mdCliever; #ifdef CD_MAIN auc_cd_global *gm; boost::asio::io_service io_bg,io_fg; cdLogger theseLogs; clientDaemonConfig *thisConfig; mdCliever *thisCliever; #ifdef MD_MAND DACLIPS::Environment rules[2]; // 0: batch, 1: commander #endif extern void runDataLayer(); extern void runCliever(); extern void shutdown(); #else extern auc_cd_global *gm; extern boost::asio::io_service io_bg,io_fg; extern const char *cdOrKb; extern cdLogger theseLogs; extern clientDaemonConfig *thisConfig; extern mdCliever *thisCliever; #ifdef MD_MAND extern DACLIPS::Environment *rules[2]; #endif #endif #include "clientDaemon.h"