Namespacing and Lib for files

This commit is contained in:
2022-09-06 21:15:01 +02:00
parent 2510f4968c
commit 3559b124a7
20 changed files with 262 additions and 119 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ namespace germanairlinesva_simdata
germanairlinesva_geodata::point center,
std::uint8_t radius);
std::uint8_t *getBinaryData() { return file.data(); }
std::size_t getBinaryLength() { return file.size(); }
inline std::uint8_t *getBinaryData() { return file.data(); }
inline std::size_t getBinaryLength() { return file.size(); }
std::string to_string() const
{
+2
View File
@@ -1,6 +1,8 @@
#ifndef GERMANAIRLINESVA_GACONNECTOR_GEODATA_H
#define GERMANAIRLINESVA_GACONNECTOR_GEODATA_H
#define _USE_MATH_DEFINES
#ifdef IBM
#define WIN32_LEAN_AND_MEAN
#endif
+2 -2
View File
@@ -49,8 +49,8 @@ namespace germanairlinesva_simdata
std::uint16_t length,
std::uint16_t trueHeading);
std::uint8_t *getBinaryData() { return file.data(); }
std::size_t getBinaryLength() { return file.size(); }
inline std::uint8_t *getBinaryData() { return file.data(); }
inline std::size_t getBinaryLength() { return file.size(); }
std::string to_string() const
{
+5 -5
View File
@@ -1,11 +1,6 @@
#ifndef GERMANAIRLINESVA_GACONNECTOR_SIMULATORDATABASE_H
#define GERMANAIRLINESVA_GACONNECTOR_SIMULATORDATABASE_H
#include "gate.h"
#include "runway.h"
#define CURRENT_VERSION 1
#include <cstdint>
#include <fstream>
#include <iostream>
@@ -14,6 +9,11 @@
#include <utility>
#include <vector>
#include "gate.h"
#include "runway.h"
#define CURRENT_VERSION 1
/*
* Header
*