swift
lastmodel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_SIMULATION_DATA_LASTMODEL_H
7 #define SWIFT_MISC_SIMULATION_DATA_LASTMODEL_H
8 
9 #include "misc/datacache.h"
11 
12 namespace swift::misc::simulation::data
13 {
15  struct TLastModel : TDataTrait<CAircraftModel>
16  {
18  static const char *key() { return "lastaircraftmodel"; }
19 
21  static const QString &humanReadable()
22  {
23  static const QString name("Own aircraft model");
24  return name;
25  }
26  };
27 } // namespace swift::misc::simulation::data
28 
29 #endif // SWIFT_MISC_SIMULATION_DATA_LASTMODEL_H
Base class for traits to be used as template argument to swift::misc::CData.
Definition: datacache.h:459
static const QString & humanReadable()
Optional human readable name.
Definition: lastmodel.h:21
static const char * key()
Key string of the value. Reimplemented in derived class.
Definition: lastmodel.h:18