From a1e10c0dfd17fc3f83e642b9d6f7c03c835e6fad Mon Sep 17 00:00:00 2001
From: vargheseg <19566373+vargheseg@users.noreply.github.com>
Date: Wed, 13 May 2020 10:44:47 +0200
Subject: [PATCH] set ro access if xml attribute is_writable is false

---
 src/DoocsPVFactory.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/DoocsPVFactory.cc b/src/DoocsPVFactory.cc
index 2089fe9..491c58d 100644
--- a/src/DoocsPVFactory.cc
+++ b/src/DoocsPVFactory.cc
@@ -294,6 +294,10 @@ namespace ChimeraTK {
     if(ifffDescription.publishZMQ) {
       boost::dynamic_pointer_cast<DoocsIfff>(doocsPV)->publishZeroMQ();
     }
+
+    if(not ifffDescription.isWriteable){
+      doocsPV->set_ro_access();
+    }
     return doocsPV;
   }
 
-- 
GitLab