swift
src
core
fsd
serializer.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_CORE_FSD_SERIALIZER_H
7
#define SWIFT_CORE_FSD_SERIALIZER_H
8
9
#include <QString>
10
#include <QtGlobal>
11
12
#include "
enums.h
"
13
14
#include "
misc/aviation/transponder.h
"
15
#include "
misc/network/facilitytype.h
"
16
17
namespace
swift::core::fsd
18
{
20
template
<
typename
T>
21
inline
QString toQString(
const
T &value);
22
23
template
<
typename
T>
24
T fromQString(
const
QString &str);
25
26
template
<>
27
QString toQString(
const
AtcRating &value);
28
29
template
<>
30
AtcRating
fromQString(
const
QString &str);
31
32
template
<>
33
QString toQString(
const
PilotRating &value);
34
35
template
<>
36
PilotRating
fromQString(
const
QString &str);
37
38
template
<>
39
QString toQString(
const
SimType &value);
40
41
template
<>
42
SimType
fromQString(
const
QString &str);
43
44
template
<>
45
QString toQString(
const
swift::misc::network::CFacilityType
&value);
46
47
template
<>
48
swift::misc::network::CFacilityType
fromQString(
const
QString &str);
49
50
template
<>
51
QString toQString(
const
ClientQueryType &value);
52
53
template
<>
54
ClientQueryType
fromQString(
const
QString &str);
55
56
template
<>
57
QString toQString(
const
FlightType &value);
58
59
template
<>
60
FlightType
fromQString(
const
QString &str);
61
62
template
<>
63
QString toQString(
const
swift::misc::aviation::CTransponder::TransponderMode
&value);
64
65
template
<>
66
swift::misc::aviation::CTransponder::TransponderMode
fromQString(
const
QString &str);
67
68
template
<>
69
QString toQString(
const
Capabilities &value);
70
71
template
<>
72
Capabilities
fromQString(
const
QString &str);
73
74
template
<>
75
AtisLineType
fromQString(
const
QString &str);
77
}
// namespace swift::core::fsd
78
79
#endif
// SWIFT_CORE_FSD_SERIALIZER_H
swift::misc::aviation::CTransponder::TransponderMode
TransponderMode
Transponder codes.
Definition:
transponder.h:32
swift::misc::network::CFacilityType
Value object encapsulating the ATC facility type, e.g. TWR, DEP, APP.
Definition:
facilitytype.h:18
enums.h
swift::core::fsd::FlightType
FlightType
Flight types.
Definition:
enums.h:90
swift::core::fsd::AtisLineType
AtisLineType
ATIS line type.
Definition:
enums.h:196
swift::core::fsd::SimType
SimType
Flight simulator type.
Definition:
enums.h:44
swift::core::fsd::AtcRating
AtcRating
ATC ratings.
Definition:
enums.h:15
swift::core::fsd::PilotRating
PilotRating
Pilot ratings.
Definition:
enums.h:33
swift::core::fsd::ClientQueryType
ClientQueryType
Client query types.
Definition:
enums.h:72
swift::core::fsd::Capabilities
Capabilities
Client capability flags */.
Definition:
enums.h:130
facilitytype.h
transponder.h
Generated on Wed Jun 11 2025 08:21:19 for swift by
1.9.1