DRDE/AusRegCliever/include/cliever-md.h

68 lines
1.6 KiB
C++

#include <cassert>
#include <cstdarg>
#include <cstdlib>
#include <iostream>
#include <boost/thread.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/statechart/event.hpp>
#include <boost/statechart/state_machine.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boost/statechart/transition.hpp>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/shared_ptr.hpp>
#include <Category.hh>
#include <FileAppender.hh>
#include <PatternLayout.hh>
#include <map>
#include <utility>
#include <map>
#include <string>
#include <queue>
#include "Listener.h"
#include "EventSender.h"
#include "TimeStampedEvent.h"
#include "PolymorphEvent.h"
namespace fsm = boost::statechart;
#define CLIEVER_APP "AusReg Cliever"
#define MD_COMPONENT "Master Daemon" // Cliever Component
#define MD_NAME CLIEVER_APP " " MD_COMPONENT
#define MD_VERSION " 1.0 " // Version
#include "mdcommon.h"
#include "mdevents.h"
#include "mdLogger.h"
#include "mdBehavior.h"
#include "mdState.h"
#include "mdHost.h"
#define MD_HAUSHALT 2000 // milliseconds between attention routine
#define MD_LOCK_FILE "cliever-md.lock"
#include "masterDaemonConfig.h"
#ifdef MD_MAIN
mdHostFabrik *deviceFactory;
mdLogger *theseLogs;
masterDaemonConfig *thisConfig;
extern void runMasterDaemon();
extern void runAPILayer();
#else
extern mdHostFabrik *deviceFactory;
extern mdLogger *theseLogs;
extern masterDaemonConfig *thisConfig;
#endif
#if ARTKENABLED > 0
#include "ausRegTK.h"
#endif