Newer
Older
Martin Christoph Hierholzer
committed
/**
* ApplicationCore.h
*
* Created on: Jun 14, 2016
* Author: Martin Hierholzer
*
* This is the main header file for the ApplicationCore library. It brings all includes and functionality needed
* for writing an application.
*/
Martin Christoph Hierholzer
committed
#include <mtca4u/Utilities.h> // for mtca4u::setDMapFilePath(), which is used by all applications
Martin Christoph Hierholzer
committed
#include "Application.h"
#include "ScalarAccessor.h"
Martin Christoph Hierholzer
committed
#include "ArrayAccessor.h"
Martin Christoph Hierholzer
committed
#include "ApplicationModule.h"
Martin Christoph Hierholzer
committed
#include "DeviceModule.h"
Martin Christoph Hierholzer
committed
#include "ControlSystemModule.h"
Martin Christoph Hierholzer
committed
#include "VariableGroup.h"
Martin Christoph Hierholzer
committed
#ifndef CHIMERATK_APPLICATION_CORE_H
#define CHIMERATK_APPLICATION_CORE_H
/** Compile-time switch: two executables will be created. One will generate an XML file containing the
* application's variable list. The other will be the actual control system server running the
Martin Christoph Hierholzer
committed
* application. The main function for the actual control system server is coming from the respective
* ControlSystemAdapter implementation library, so inly the XML generator's main function is definde
* here. */
#ifdef GENERATE_XML
Martin Christoph Hierholzer
committed
Martin Christoph Hierholzer
committed
int main(int, char **) {
Martin Christoph Hierholzer
committed
ChimeraTK::Application::getInstance().generateXML();
return 0;
}
#endif /* GENERATE_XML */
#endif /* CHIMERATK_APPLICATION_CORE_H */