From 2253b8d89c952015c8d0f77074a8fb1bd07e94bd Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Tue, 22 Jan 2019 11:25:20 +0100
Subject: [PATCH] refactoring: renamed class DebugDecoratorRegisterAccessor
 ->DebugPrintAccessorDecorator

---
 include/Application.h                                  |  2 +-
 ...egisterAccessor.h => DebugPrintAccessorDecorator.h} |  6 +++---
 src/Application.cc                                     | 10 +++++-----
 3 files changed, 9 insertions(+), 9 deletions(-)
 rename include/{DebugDecoratorRegisterAccessor.h => DebugPrintAccessorDecorator.h} (92%)

diff --git a/include/Application.h b/include/Application.h
index 5fa945e3..cce7a723 100644
--- a/include/Application.h
+++ b/include/Application.h
@@ -343,7 +343,7 @@ namespace ChimeraTK {
       friend class TestFacility;                    // needs access to testableMode_variables
 
       template<typename UserType>
-      friend class DebugDecoratorRegisterAccessor;   // needs access to the idMap
+      friend class DebugPrintAccessorDecorator;   // needs access to the idMap
 
       /** Counter for how many write() operations have overwritten unread data */
       std::atomic<size_t> dataLossCounter{0};
diff --git a/include/DebugDecoratorRegisterAccessor.h b/include/DebugPrintAccessorDecorator.h
similarity index 92%
rename from include/DebugDecoratorRegisterAccessor.h
rename to include/DebugPrintAccessorDecorator.h
index f5cfcbfa..10ddcb36 100644
--- a/include/DebugDecoratorRegisterAccessor.h
+++ b/include/DebugPrintAccessorDecorator.h
@@ -1,5 +1,5 @@
 /*
- * DebugDecoratorRegisterAccessor.h
+ * DebugPrintAccessorDecorator.h
  *
  *  Created on: Nov 21, 2017
  *      Author: Martin Hierholzer
@@ -16,9 +16,9 @@ namespace ChimeraTK {
 
   /** Decorator of the NDRegisterAccessor which facilitates tests of the application */
   template<typename UserType>
-  class DebugDecoratorRegisterAccessor : public ChimeraTK::NDRegisterAccessorDecorator<UserType> {
+  class DebugPrintAccessorDecorator : public ChimeraTK::NDRegisterAccessorDecorator<UserType> {
     public:
-      DebugDecoratorRegisterAccessor(boost::shared_ptr<ChimeraTK::NDRegisterAccessor<UserType>> accessor,
+      DebugPrintAccessorDecorator(boost::shared_ptr<ChimeraTK::NDRegisterAccessor<UserType>> accessor,
                                      const std::string &fullyQualifiedName)
       : ChimeraTK::NDRegisterAccessorDecorator<UserType>(accessor),
         _fullyQualifiedName(fullyQualifiedName)
diff --git a/src/Application.cc b/src/Application.cc
index bf707b73..717ed116 100644
--- a/src/Application.cc
+++ b/src/Application.cc
@@ -25,7 +25,7 @@
 #include "ArrayAccessor.h"
 #include "ConstantAccessor.h"
 #include "TestableModeAccessorDecorator.h"
-#include "DebugDecoratorRegisterAccessor.h"
+#include "DebugPrintAccessorDecorator.h"
 #include "Visitor.h"
 #include "VariableNetworkGraphDumpingVisitor.h"
 #include "XMLGeneratorVisitor.h"
@@ -433,12 +433,12 @@ std::pair< boost::shared_ptr<ChimeraTK::NDRegisterAccessor<UserType>>, boost::sh
     if(consumer.getType() != NodeType::invalid) {
       assert(node.getDirection().dir == VariableDirection::feeding);
       assert(consumer.getDirection().dir == VariableDirection::consuming);
-      pvarPair.first = boost::make_shared<DebugDecoratorRegisterAccessor<UserType>>(pvarPair.first, node.getQualifiedName());
-      pvarPair.second = boost::make_shared<DebugDecoratorRegisterAccessor<UserType>>(pvarPair.second, consumer.getQualifiedName());
+      pvarPair.first = boost::make_shared<DebugPrintAccessorDecorator<UserType>>(pvarPair.first, node.getQualifiedName());
+      pvarPair.second = boost::make_shared<DebugPrintAccessorDecorator<UserType>>(pvarPair.second, consumer.getQualifiedName());
     }
     else {
-      pvarPair.first = boost::make_shared<DebugDecoratorRegisterAccessor<UserType>>(pvarPair.first, node.getQualifiedName());
-      pvarPair.second = boost::make_shared<DebugDecoratorRegisterAccessor<UserType>>(pvarPair.second, node.getQualifiedName());
+      pvarPair.first = boost::make_shared<DebugPrintAccessorDecorator<UserType>>(pvarPair.first, node.getQualifiedName());
+      pvarPair.second = boost::make_shared<DebugPrintAccessorDecorator<UserType>>(pvarPair.second, node.getQualifiedName());
     }
 
   }
-- 
GitLab