Simulator database for X-Plane

This commit is contained in:
2022-01-03 04:56:27 +01:00
parent eca1efdf83
commit 4b893ca726
16 changed files with 1054 additions and 230 deletions
+5 -10
View File
@@ -1,13 +1,5 @@
#ifndef GERMANAIRLINESVA_GACONNECTOR_MAIN_H
#define GERMANAIRLINESVA_GACONNECTOR_MAIN_H
#ifdef IBM
#define WIN32_LEAN_AND_MEAN
#define _USE_MATH_DEFINES
#endif
#define BUFSIZE 1024
#define MD5LEN 16
#ifndef GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAIN_H
#define GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAIN_H
#include "XPLM/XPLMDataAccess.h"
#include "XPLM/XPLMGraphics.h"
@@ -16,6 +8,9 @@
#include "XPLM/XPLMProcessing.h"
#include "XPLM/XPLMUtilities.h"
#include "config.h"
#include "makeRwysXP.h"
#include "simulatorDatabase.h"
#include "websocket.h"
#include <atomic>
+30
View File
@@ -0,0 +1,30 @@
#ifndef GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAKERWYSXP_H
#define GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAKERWYSXP_H
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include "gate.h"
#include "runway.h"
#include "stringExtensions.h"
#include "util.h"
int scan(const char *defaultFile,
const char *sceneryPack,
const char *logFile,
std::map<std::string,
std::pair<std::vector<Gate>, std::vector<Runway>>> &airports);
void makeAirport(
const std::string &kind,
std::ifstream *infile,
std::map<std::string, std::pair<std::vector<Gate>, std::vector<Runway>>>
*airports,
std::ofstream *logfile);
void makeGate15(std::vector<Gate> *gates, std::vector<std::string> fields);
void makeRunway(std::vector<Runway> *runways, std::vector<std::string> fields);
void makeGate1300(std::vector<Gate> *gates, std::vector<std::string> fields);
#endif