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
27namespace flightgear {
28
29class ErrorReporter : public SGSubsystem
30{
31public:
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
49private:
50 class ErrorReporterPrivate;
51
52 std::unique_ptr<ErrorReporterPrivate> d;
53};
54
55} // namespace flightgear
void update(double dt) override
static std::string threadSpecificContextValue(const std::string &key)
static const char * staticSubsystemClassId()
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
Definition Addon.cxx:53