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