diff --git a/include/ExceptionHandlingDecorator.h b/include/ExceptionHandlingDecorator.h index e0059854a45a93aada2f1190a5f3a4351ea11d7a..ce7c4bba3f3e97458dfa80b2b4a82f4254eabc81 100644 --- a/include/ExceptionHandlingDecorator.h +++ b/include/ExceptionHandlingDecorator.h @@ -34,13 +34,9 @@ namespace ChimeraTK { TransferFuture doReadTransferAsync() override; - void doPreRead() override; - void doPostRead() override; - - void doPreWrite() override; - - void doPostWrite() override; - + + //void doPreRead() override; + DataValidity dataValidity() const override; void interrupt() override; diff --git a/src/ExceptionHandlingDecorator.cc b/src/ExceptionHandlingDecorator.cc index 96504ef261e2f45a9b43a8030f0c2414f5179a9f..7634b12d3a7c48b7cbb7ebdf077b5203cc355de2 100644 --- a/src/ExceptionHandlingDecorator.cc +++ b/src/ExceptionHandlingDecorator.cc @@ -98,25 +98,14 @@ namespace ChimeraTK { return future; } + + /* template<typename UserType> void ExceptionHandlingDecorator<UserType>::doPreRead() { genericTransfer([this]() { return ChimeraTK::NDRegisterAccessorDecorator<UserType>::doPreRead(), true; }); } - - template<typename UserType> - void ExceptionHandlingDecorator<UserType>::doPostRead() { - genericTransfer([this]() { return ChimeraTK::NDRegisterAccessorDecorator<UserType>::doPostRead(), true; }); - } - - template<typename UserType> - void ExceptionHandlingDecorator<UserType>::doPreWrite() { - genericTransfer([this]() { return ChimeraTK::NDRegisterAccessorDecorator<UserType>::doPreWrite(), true; }, false); - } - - template<typename UserType> - void ExceptionHandlingDecorator<UserType>::doPostWrite() { - genericTransfer([this]() { return ChimeraTK::NDRegisterAccessorDecorator<UserType>::doPostWrite(), true; }, false); - } + */ + template<typename UserType> DataValidity ExceptionHandlingDecorator<UserType>::dataValidity() const { @@ -142,5 +131,12 @@ namespace ChimeraTK { } INSTANTIATE_TEMPLATE_FOR_CHIMERATK_USER_TYPES(ExceptionHandlingDecorator); + + /* + template<typename UserType> + void ExceptionHandlingDecorator<UserType>::doPostRead() { + genericTransfer([this]() { return ChimeraTK::NDRegisterAccessorDecorator<UserType>::doPostRead(), true; }); + } + */ } /* namespace ChimeraTK */