22 [[nodiscard]]
const std::string&
getName()
const {
return name; }
23 [[nodiscard]] std::string_view
getDescription()
const {
return description; }
24 [[nodiscard]]
virtual std::string
getValue()
const = 0;
33 const std::string name;
45 if (value != newValue) {
52 [[nodiscard]]
operator const T&()
const {
57 [[nodiscard]] std::string getValue()
const override;
84 [[nodiscard]] std::string getValue()
const override;
virtual std::string getValue() const =0
ProbeBase & operator=(const ProbeBase &)=delete
ProbeBase(ProbeBase &&)=delete
ProbeBase & operator=(ProbeBase &&)=delete
const std::string & getName() const
ProbeBase(const ProbeBase &)=delete
std::string_view getDescription() const
Probe(Debugger &debugger, std::string name, static_string_view description, T t)
Probe & operator=(const T &newValue)
Generic Gang-of-Four Subject class of the Observer pattern, templatized edition.
This file implemented 3 utility functions: