XPPlanes
X-Plane plugin to display additional planes based on network data
XPPlanes.h
Go to the documentation of this file.
1 
21 #pragma once
22 
23 #if IBM
24 // In MINGW winsock2 must be included before windows.h, which is included by the mingw.*.h headers
25 #include <winsock2.h>
26 #include <ws2ipdef.h> // required for sockaddr_in6 (?)
27 #include <iphlpapi.h> // for GetAdaptersAddresses
28 #include <ws2tcpip.h>
29 #endif
30 
31 // Standard C
32 #include <sys/stat.h>
33 #include <cmath>
34 #include <cstdarg>
35 #include <cassert>
36 #include <cstring>
37 
38 // Standard C++
39 #include <string>
40 #include <memory>
41 #include <map>
42 #include <vector>
43 #include <list>
44 #include <algorithm>
45 #include <thread>
46 #include <mutex>
47 #include <fstream>
48 #include <stdexcept>
49 
50 // On Windows, 'max' and 'min' are defined macros in conflict with C++ library. Let's undefine them!
51 #if IBM
52 #include <direct.h>
53 #undef max
54 #undef min
55 #endif
56 
57 // Libraries
58 #include "parson/parsonWrapper.h"
59 
60 // X-Plane SDK
61 #include "XPLMUtilities.h"
62 #include "XPLMProcessing.h"
63 #include "XPLMDataAccess.h"
64 #include "XPLMPlugin.h"
65 #include "XPLMMenus.h"
66 #include "XPLMGraphics.h"
67 
68 // XPMP2 - Public Header Files
69 #include "XPMPMultiplayer.h"
70 #include "XPMPAircraft.h"
71 #include "../lib/XPMP2/src/Network.h"
72 
73 // XPPlanes
74 #include "Constants.h"
75 #include "Utilities.h"
76 #include "Listener.h"
77 #include "FlightData.h"
78 #include "Plane.h"
79 #include "Global.h"
XPPlanes constant definitions.
Position, attitude, and configuration data that drives the planes' display.
Defines the GlobVars class holding all global variable information.
UDP receiver thread.
The Plane class represents, guess what, a plane.
Miscellaneous utility functions, including logging.