11#include <framework/logging/Logger.h>
28 template<
class Var,
class RangeType>
29 static void notify(
const Var& filterType,
30 typename Var::variableType fResult,
31 const RangeType& range,
32 const typename Var::argumentType&
outerHit,
33 const typename Var::argumentType& innerHit)
36 std::stringstream outputStream;
37 outputStream << filterType.name()
38 <<
" with outer-/innerhit: "
41 << innerHit.getPosition().PrintStringXYZ()
45 << innerHit.getArrayIndex()
49 << innerHit.getVxdID()
51 << (range.contains(fResult) ? std::setprecision(6) : std::setprecision(18))
54 << (range.contains(fResult) ? std::string(
">true<") : std::string(
">false<"))
60 B2DEBUG(5, outputStream.str());
76 template <
typename ... types >
82 template <
typename ... types >
std::string PrintStringXYZ(unsigned precision=4) const
create a string containing vector in cartesian coordinates
this observer does simply print the name of the SelectionVariable and the result of its value-functio...
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
static void initialize(const types &...)
static method used by the observed object to initialize the observer.
static void notify(const Var &filterType, typename Var::variableType fResult, const RangeType &range, const typename Var::argumentType &outerHit, const typename Var::argumentType &innerHit)
notifier producing a info message if SelectionVariable was accepted and a Warning if otherwise
ObserverPrintResults()
empty constructor:
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.