Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  22 Oct 2022, Lars Martin, Suggestion, read_only odbxx? 
    Reply  24 Oct 2022, Stefan Ritt, Suggestion, read_only odbxx? 
       Reply  26 Oct 2022, Lars Martin, Suggestion, read_only odbxx? 
          Reply  29 Oct 2022, Stefan Ritt, Suggestion, read_only odbxx? 
Message ID: 2444     Entry time: 26 Oct 2022     In reply to: 2443     Reply to this: 2445
Author: Lars Martin 
Topic: Suggestion 
Subject: read_only odbxx? 
> Having a "const midas::odb" probably does not work (at least I would not know how to implement that).
> 
> But I could make an internal flag analog to the auto refresh flags. So you would have
> 
>     o.set_write_protect(true);
> 
> to turn on write protection. Would that work for you?

Absolutely. Looking at the underlying code I was also at a loss how const would work.
I'm mostly just interested in having small clients that only read from the odb (for whatever reason) without risking corrupting it by messing something 
up in the code, especially since such small clients are almost by definition hacked together quickly on the fly.
ELOG V3.1.4-2e1708b5