WSF
ICAO_Resolver.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2019 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef ICAORESOLVER_HPP
13#define ICAORESOLVER_HPP
14
15#include "usmtf_export.h"
16
17#include <string>
18#include <unordered_map>
19
20namespace usmtf
21{
22
27class USMTF_EXPORT ICAO_Resolver
28{
29public:
32 std::string LookUpCode(const std::string& aIcaoCode) const noexcept;
35 void LoadCodeMap(bool aForceReload = false) noexcept;
36
37private:
38 std::unordered_map<std::string, std::string> ReadConf() const noexcept;
43 static std::unordered_map<std::string, std::string> mCodes;
44 static std::unordered_map<std::string, std::string> mConf;
45 static bool mHasLoadedCodes;
46 static bool mHasLoadedConf;
47};
48} // namespace usmtf
49
50#endif
std::string LookUpCode(const std::string &aIcaoCode) const noexcept
Looks up an ICAO code and returns formatted position data.
Definition ICAO_Resolver.cpp:31
ICAO_Resolver()
Definition ICAO_Resolver.cpp:26
void LoadCodeMap(bool aForceReload=false) noexcept
Definition ICAO_Resolver.cpp:41
Definition Acmid.cpp:17
Copyrights Multiple, All Rights Reserved