78 signal(SIGINT, SigHandler_Int);
79 signal(SIGTERM, SigHandler_Int);
84 sigemptyset(&intmask);
85 sigaddset(&intmask, SIGINT);
86 sigprocmask(SIG_BLOCK, &intmask,
nullptr);
88 std::pair<boost::shared_ptr<ChimeraTK::ControlSystemPVManager>, boost::shared_ptr<ChimeraTK::DevicePVManager>>
89 pvManagers = ChimeraTK::createPVManager();
95 ChimeraTK::ApplicationBase::getInstance().setPVManager(
devManager);
96 ChimeraTK::ApplicationBase::getInstance().initialise();
98 string pathToConfig = ChimeraTK::ApplicationBase::getInstance().getName() +
"_mapping.xml";
101 UA_LOG_INFO(
csaOPCUA->
getLogger(), UA_LOGCATEGORY_USERLAND,
"Optimize unmapped variables in the application base");
104 UA_LOG_INFO(
csaOPCUA->
getLogger(), UA_LOGCATEGORY_USERLAND,
"Run the application instance");
105 ChimeraTK::ApplicationBase::getInstance().run();
107 UA_LOG_INFO(
csaOPCUA->
getLogger(), UA_LOGCATEGORY_USERLAND,
"Start the OPC UA Adapter");
111 sigprocmask(SIG_UNBLOCK, &intmask,
nullptr);
116 std::cout <<
"Application termianted." << std::endl;