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: 2441     Entry time: 22 Oct 2022     Reply to this: 2443
Author: Lars Martin 
Topic: Suggestion 
Subject: read_only odbxx? 
I really like the concept of the odbxx interface.
I think it would be a nice feature if one could have a read_only connection, e.g. by declaring a "const midas::odb".
Just for fun I tried if this already works, but the compiler doesn't allow const midas::odb for e.g. the [] operator. I'm guessing this would be non-trivial to implement, but I like the idea of certain Midas clients being able to read the odb without risking corruption.
ELOG V3.1.4-2e1708b5