-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.h
39 lines (37 loc) · 986 Bytes
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "flightStrip.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
namespace plugInSettings {
class settings {
protected:
std::ifstream settingsfStream;
bool open();
bool parseStrips();
bool nextLine();
int resolveType(std::string keyword2);
std::ptrdiff_t addIfNew(std::string setname);
bool setExists(std::string setname);
void logParseError(std::string message);
std::ptrdiff_t findIndex(std::string setname);
std::vector<std::string> splitFields();
std::string getDllPath();
std::string currentLine{};
std::vector<stripSet> stripSets;
std::string m_dllPath;
int lineNumber;
bool parseStatus;
public:
settings();
bool load();
bool changeCurrentStripSet(std::string setName);
std::string customICAOLocation;
stripSet currentStripSet;
stripSet getStripSet(std::string setName);
std::vector<stripSet> getStripSets();
std::string dllPath();
};
}
extern plugInSettings::settings settings;