Skip to content
Snippets Groups Projects
Commit aad7eea9 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

set the name of the DOOCS server to the application's name

parent b93f2818
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,9 @@ namespace ChimeraTK {
* makeConnections() has been called. */
void dumpConnections();
/** Return the name of the application */
const std::string& getName() {return applicationName;}
protected:
friend class Module;
......
......@@ -27,6 +27,8 @@
#include <ControlSystemAdapter-DoocsAdapter/DoocsAdapter.h>
BEGIN_DOOCS_SERVER("Control System Adapter", 10)
// set the DOOCS server name to the application name
object_name = ChimeraTK::Application::getInstance().getName().c_str();
// Create static instances for all applications cores. They must not have overlapping
// process variable names ("location/protery" must be unique).
ChimeraTK::Application::getInstance().setPVManager(doocsAdapter.getDevicePVManager());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment