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
openmsx::Probe::Probe
Probe(Debugger &debugger, std::string name, std::string description, T t)
Definition: Probe.hh:56
openmsx::Debugger::registerProbe
void registerProbe(ProbeBase &probe)
Definition: Debugger.cc:75
openmsx::Debugger
Definition: Debugger.hh:22
openmsx::Probe
Definition: Probe.hh:31
Probe.hh
openmsx::Debugger::unregisterProbe
void unregisterProbe(ProbeBase &probe)
Definition: Debugger.cc:81
openmsx::ProbeBase::ProbeBase
ProbeBase(Debugger &debugger, std::string name, std::string description)
Definition: Probe.cc:6
openmsx::ProbeBase::~ProbeBase
~ProbeBase()
Definition: Probe.cc:15
openmsx::ProbeBase
Definition: Probe.hh:12
openmsx::Subject< ProbeBase >::notify
void notify() const
Definition: Subject.hh:67
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
Debugger.hh