Skip to content
Snippets Groups Projects
  • Jens Georg's avatar
    0ce12e94
    all: Add basic D_xy implementation · 0ce12e94
    Jens Georg authored
     - Introduce a new D_xy tag which takes x_source and y_source
     - The two sources are attached to a DataConsistentcyGroup. Only If the
       consistency group signalizes a consistent state, the data is updated
    0ce12e94
    History
    all: Add basic D_xy implementation
    Jens Georg authored
     - Introduce a new D_xy tag which takes x_source and y_source
     - The two sources are attached to a DataConsistentcyGroup. Only If the
       consistency group signalizes a consistent state, the data is updated
DoocsXY.h 769 B
#pragma once

#include <D_xy.h>
#include <boost/noncopyable.hpp>

#include <ChimeraTK/NDRegisterAccessor.h>
#include <ChimeraTK/DataConsistencyGroup.h>

class EqFct;

namespace ChimeraTK {
  class DoocsUpdater;

  class DoocsXy : public D_xy, public boost::noncopyable {
   public:
    DoocsXy(EqFct* eqFct, std::string const& doocsPropertyName,
        boost::shared_ptr<NDRegisterAccessor<float>> const& xValues,
        boost::shared_ptr<NDRegisterAccessor<float>> const& yValues, DoocsUpdater& updater);

   protected:
    void updateValues(TransferElementID& elementId);

    DataConsistencyGroup _consistencyGroup;
    boost::shared_ptr<NDRegisterAccessor<float>> _xValues;
    boost::shared_ptr<NDRegisterAccessor<float>> _yValues;
  };
} // namespace ChimeraTK