openMSX
Probe.cc
Go to the documentation of this file.
1 #include "Probe.hh"
2 #include "Debugger.hh"
3 
4 namespace openmsx {
5 
6 ProbeBase::ProbeBase(Debugger& debugger_, std::string name_,
7  std::string description_)
8  : debugger(debugger_)
9  , name(std::move(name_))
10  , description(std::move(description_))
11 {
12  debugger.registerProbe(*this);
13 }
14 
16 {
17  debugger.unregisterProbe(*this);
18 }
19 
20 
21 Probe<void>::Probe(Debugger& debugger_, std::string name_,
22  std::string description_)
23  : ProbeBase(debugger_, std::move(name_), std::move(description_))
24 {
25 }
26 
28 {
29  notify();
30 }
31 
32 std::string Probe<void>::getValue() const
33 {
34  return {};
35 }
36 
37 } // namespace openmsx
STL namespace.
Probe(Debugger &debugger, std::string name, std::string description, T t)
Definition: Probe.hh:56
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void unregisterProbe(ProbeBase &probe)
Definition: Debugger.cc:81
void registerProbe(ProbeBase &probe)
Definition: Debugger.cc:75
ProbeBase(Debugger &debugger, std::string name, std::string description)
Definition: Probe.cc:6