Skip to content
Snippets Groups Projects
Commit 2253b8d8 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

refactoring: renamed class DebugDecoratorRegisterAccessor ->DebugPrintAccessorDecorator

parent 299abdb2
No related branches found
No related tags found
No related merge requests found
......@@ -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};
......
/*
* 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)
......
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment