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  static_string_view description_)
8  : debugger(debugger_)
9  , name(std::move(name_))
10  , description(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  static_string_view description_)
23  : ProbeBase(debugger_, std::move(name_), description_)
24 {
25 }
26 
28 {
29  notify();
30 }
31 
32 std::string Probe<void>::getValue() const
33 {
34  return {};
35 }
36 
37 } // namespace openmsx
void registerProbe(ProbeBase &probe)
Definition: Debugger.cc:71
void unregisterProbe(ProbeBase &probe)
Definition: Debugger.cc:77
ProbeBase(const ProbeBase &)=delete
Probe(Debugger &debugger, std::string name, static_string_view description, T t)
Definition: Probe.hh:60
static_string_view
This file implemented 3 utility functions:
Definition: Autofire.cc:9