openMSX
Probe.cc
Go to the documentation of this file.
1#include "Probe.hh"
2
3#include "Debugger.hh"
4
5namespace openmsx {
6
7ProbeBase::ProbeBase(Debugger& debugger_, std::string name_,
8 static_string_view description_)
9 : debugger(debugger_)
10 , name(std::move(name_))
11 , description(description_)
12{
13 debugger.registerProbe(*this);
14}
15
17{
18 debugger.unregisterProbe(*this);
19}
20
21
22Probe<void>::Probe(Debugger& debugger_, std::string name_,
23 static_string_view description_)
24 : ProbeBase(debugger_, std::move(name_), description_)
25{
26}
27
29{
30 notify();
31}
32
33std::string Probe<void>::getValue() const
34{
35 return {};
36}
37
38} // namespace openmsx
void registerProbe(ProbeBase &probe)
Definition Debugger.cc:81
void unregisterProbe(ProbeBase &probe)
Definition Debugger.cc:87
ProbeBase(const ProbeBase &)=delete
Probe(Debugger &debugger, std::string name, static_string_view description, T t)
Definition Probe.hh:63
static_string_view
This file implemented 3 utility functions:
Definition Autofire.cc:11
STL namespace.