FlightGear
next
ErrorReporter.hxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 James Turner
3
*
4
* This file is part of the program FlightGear.
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
21
#pragma once
22
23
#include <memory>
24
25
#include <simgear/structure/subsystem_mgr.hxx>
26
27
namespace
flightgear
{
28
29
class
ErrorReporter
:
public
SGSubsystem
30
{
31
public
:
32
ErrorReporter
();
33
~ErrorReporter
();
34
35
void
preinit
();
36
37
void
init
()
override
;
38
void
bind
()
override
;
39
void
unbind
()
override
;
40
41
void
update
(
double
dt)
override
;
42
43
void
shutdown
()
override
;
44
45
static
const
char
*
staticSubsystemClassId
() {
return
"error-reporting"
; }
46
47
static
std::string
threadSpecificContextValue
(
const
std::string& key);
48
49
private
:
50
class
ErrorReporterPrivate;
51
52
std::unique_ptr<ErrorReporterPrivate> d;
53
};
54
55
}
// namespace flightgear
flightgear::ErrorReporter::update
void update(double dt) override
Definition
ErrorReporter.cxx:859
flightgear::ErrorReporter::~ErrorReporter
~ErrorReporter()
Definition
ErrorReporter.cxx:782
flightgear::ErrorReporter::init
void init() override
Definition
ErrorReporter.cxx:827
flightgear::ErrorReporter::threadSpecificContextValue
static std::string threadSpecificContextValue(const std::string &key)
Definition
ErrorReporter.cxx:973
flightgear::ErrorReporter::staticSubsystemClassId
static const char * staticSubsystemClassId()
Definition
ErrorReporter.hxx:45
flightgear::ErrorReporter::bind
void bind() override
Definition
ErrorReporter.cxx:791
flightgear::ErrorReporter::preinit
void preinit()
Definition
ErrorReporter.cxx:812
flightgear::ErrorReporter::unbind
void unbind() override
Definition
ErrorReporter.cxx:805
flightgear::ErrorReporter::ErrorReporter
ErrorReporter()
Definition
ErrorReporter.cxx:756
flightgear::ErrorReporter::shutdown
void shutdown() override
Definition
ErrorReporter.cxx:956
flightgear
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
Definition
Addon.cxx:53
src
Main
ErrorReporter.hxx
Generated on Tue Jun 3 2025 12:58:40 for FlightGear by
1.13.2