swift
Namespaces | Enumerations
enums.h File Reference

Go to the source code of this file.

Namespaces

 swift::core
 Backend services of the swift project, like dealing with the network or the simulators.
 

Enumerations

enum class  swift::core::fsd::AtcRating {
  Unknown , Observer , Student , Student2 ,
  Student3 , Controller1 , Controller2 , Controller3 ,
  Instructor1 , Instructor2 , Instructor3 , Supervisor ,
  Administrator
}
 ATC ratings. More...
 
enum class  swift::core::fsd::PilotRating {
  Unknown , Student , VFR , IFR ,
  Instructor , Supervisor
}
 Pilot ratings. More...
 
enum class  swift::core::fsd::SimType {
  Unknown , MSFS95 , MSFS98 , MSCFS ,
  MSFS2000 , MSCFS2 , MSFS2002 , MSCFS3 ,
  MSFS2004 , MSFSX , MSFS , MSFS2024 ,
  XPLANE8 , XPLANE9 , XPLANE10 , XPLANE11 ,
  XPLANE12 , P3Dv1 , P3Dv2 , P3Dv3 ,
  P3Dv4 , P3Dv5 , FlightGear
}
 Flight simulator type. More...
 
enum class  swift::core::fsd::ClientQueryType {
  Unknown , IsValidATC , Capabilities , Com1Freq ,
  RealName , Server , ATIS , PublicIP ,
  INF , FP , AircraftConfig , EuroscopeSimData
}
 Client query types. More...
 
enum class  swift::core::fsd::FlightType { IFR , VFR , SVFR , DVFR }
 Flight types. More...
 
enum class  swift::core::fsd::ServerErrorCode {
  NoError , CallsignInUse , InvalidCallsign , AlreadyRegistered ,
  SyntaxError , InvalidSrcCallsign , InvalidCidPassword , NoSuchCallsign ,
  NoFlightPlan , NoWeatherProfile , InvalidRevision , RequestedLevelTooHigh ,
  ServerFull , CidSuspended , InvalidCtrl , RatingTooLow ,
  InvalidClient , AuthTimeout , Unknown
}
 Server error codes. More...
 
enum class  swift::core::fsd::ServerType { LegacyFsd , Vatsim }
 FSD Server type. More...
 
enum class  swift::core::fsd::Capabilities : int {
  None = (1 << 0) , AtcInfo = (1 << 1) , SecondaryPos = (1 << 2) , AircraftInfo = (1 << 3) ,
  OngoingCoord = (1 << 4) , InterminPos = (1 << 5) , FastPos = (1 << 6) , VisPos = (1 << 7) ,
  Stealth = (1 << 8) , AircraftConfig = (1 << 9) , IcaoEquipment = (1 << 10)
}
 Client capability flags *‍/. More...
 
enum class  swift::core::fsd::AtisLineType {
  Unknown , VoiceRoom , TextMessage , ZuluLogoff ,
  LineCount
}
 ATIS line type.
 

Functions

Capabilities swift::core::fsd::operator| (Capabilities lhs, Capabilities rhs)
 Operators.
 
Capabilities & swift::core::fsd::operator|= (Capabilities &lhs, Capabilities rhs)
 Operators.
 
bool swift::core::fsd::operator& (Capabilities lhs, Capabilities rhs)
 Operators.
 

Enumeration Type Documentation

◆ AtcRating

ATC ratings.

Enumerator
Unknown 

Unknown.

Observer 

OBS.

Student 

S1.

Student2 

S2.

Student3 

S3.

Controller1 

C1.

Controller2 

C2.

Controller3 

C3.

Instructor1 

I1.

Instructor2 

I2.

Instructor3 

I3.

Supervisor 

SUP.

Administrator 

ADM.

Definition at line 14 of file enums.h.

◆ Capabilities

enum swift::core::fsd::Capabilities : int
strong

Client capability flags *‍/.

Enumerator
None 

None.

AtcInfo 

Can accept ATIS responses.

SecondaryPos 

Can send/receive secondary visibility center points (ATC/Server only).

AircraftInfo 

Can send/receive modern model packets.

This should be the standard for any new pilot client. Also all older VATSIM clients starting from SB3 do support this capability. Aircraft info contains

  • Aircraft ICAO identifier
  • Airline ICAO identifier (optional)
  • Airline livery (optional)
OngoingCoord 

Can send/receive inter-facility coordination packets (ATC only).

InterminPos 

Can send/receive Interim position updates (pilot only)

Deprecated:
Used only by Squawkbox with high precision errors.

Use FastPos instead.

FastPos 

Can send/receive fast position updates (pilot only).

VisPos 

Can send/receive visual position updates (pilot only).

Stealth 

Stealth mode.

AircraftConfig 

Aircraft Config.

IcaoEquipment 

Process aircraft ICAO in flightplan as ICAO equipment code (e.g.

B737/M-SDE2E3FGHIRWXY/LB1)

Definition at line 129 of file enums.h.

◆ ClientQueryType

Client query types.

Enumerator
Unknown 

Unknown client query type.

IsValidATC 

Is this client working ATC or just an observer.

Capabilities 

What capabilities does this client have?

Com1Freq 

What is your COM1 Frequency? Response by pilot clients only.

RealName 

What is your real-name (and other ATC data)

Server 

What server are you on?

ATIS 

What is your ATIS? Reponse by ATC clients only.

PublicIP 

What is my public IP address?

INF 

Supervisor Privileged Information Request.

FP 

Send Cached Flight Plan.

Response by SERVER.

AircraftConfig 

Aircraft Configuration.

EuroscopeSimData 

Broadcast to announce we request SIMDATA packets.

Definition at line 71 of file enums.h.

◆ FlightType

Flight types.

Enumerator
IFR 

IFR flight rules.

VFR 

Visual flight rules.

SVFR 

Special visual flight rules.

DVFR 

Defense visual Flight Rules.

Definition at line 89 of file enums.h.

◆ PilotRating

Pilot ratings.

Enumerator
Unknown 

Unknown rating.

Student 

P1.

VFR 

P2.

IFR 

P3.

Instructor 

Instructor.

Supervisor 

SUP.

Definition at line 32 of file enums.h.

◆ ServerErrorCode

Server error codes.

Enumerator
NoError 

No error.

CallsignInUse 

Callsign in use.

InvalidCallsign 

Invalid callsign.

AlreadyRegistered 

Already registered.

SyntaxError 

Syntax error.

InvalidSrcCallsign 

Invalid source callsign.

InvalidCidPassword 

Invalid CID/password.

NoSuchCallsign 

No such callsign.

NoFlightPlan 

No flightplan.

NoWeatherProfile 

No such weather profile.

InvalidRevision 

Invalid protocol revision.

RequestedLevelTooHigh 

Requested level too high.

ServerFull 

Too many clients connected

CidSuspended 

CID/PID was suspended.

InvalidCtrl 

Not valid control.

RatingTooLow 

Rating too low for this position.

InvalidClient 

Unauthorized client software.

AuthTimeout 

Wrong server type.

Unknown 

Unknown error.

Definition at line 98 of file enums.h.

◆ ServerType

FSD Server type.

Enumerator
LegacyFsd 

Legacy FSD.

Vatsim 

VATSIM server.

Definition at line 122 of file enums.h.

◆ SimType

Flight simulator type.

Enumerator
Unknown 

Unknown simulator type.

MSFS95 

MS Flight Simulator 95.

MSFS98 

MS Flight Simulator 98.

MSCFS 

MS Combat Flight Simulator.

MSFS2000 

MS Flight Simulator 2000.

MSCFS2 

MS Combat Flight Simulator 2.

MSFS2002 

MS Flight Simulator 2002.

MSCFS3 

MS Combat Flight Simulator 3.

MSFS2004 

MS Flight Simulator 2004.

MSFSX 

MS Flight Simulator X.

MSFS 

MS Flight Simulator 2020.

MSFS2024 

MS Flight Simulator 2024.

XPLANE8 

X-Plane 8.

XPLANE9 

X-Plane 9.

XPLANE10 

X-Plane 10.

XPLANE11 

X-Plane 11.

XPLANE12 

X-Plane 12.

P3Dv1 

Prepar3D V1.

P3Dv2 

Prepar3D V2.

P3Dv3 

Prepar3D V3.

P3Dv4 

Prepar3D V4.

P3Dv5 

Prepar3D V5.

FlightGear 

Flight Gear.

Definition at line 43 of file enums.h.