WSF
NamedLocation.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 NAMEDLOCATION_HPP
13#define NAMEDLOCATION_HPP
14
15#include "usmtf_export.h"
16
17#include <string>
18
19#include "FFIRN_Validator.hpp"
20#include "ICAO_Resolver.hpp"
21#include "LatLon.hpp"
22
23namespace usmtf
24{
27
32class USMTF_EXPORT NamedLocation : public LatLon
33{
34public:
35 NamedLocation() = default;
36 bool ParseAndValidate(const Field& aField) override;
37 const std::string& GetLocation() const noexcept;
38 bool IsLocationFreeForm() const noexcept;
39
40protected:
41 ICAO_Resolver mICAOService; // Uses ICAO table to associate user provided name to spherical position.
42 std::string mLocation;
44};
45} // namespace usmtf
46#endif
Definition Field.hpp:48
Definition ICAO_Resolver.hpp:28
LatLon()=default
std::string mLocation
Definition NamedLocation.hpp:42
bool mIsFreeForm
Definition NamedLocation.hpp:43
ICAO_Resolver mICAOService
Definition NamedLocation.hpp:41
bool ParseAndValidate(const Field &aField) override
Definition NamedLocation.cpp:16
const std::string & GetLocation() const noexcept
Definition NamedLocation.cpp:38
bool IsLocationFreeForm() const noexcept
Definition NamedLocation.cpp:43
Template specialization for wsf::comm::Address. Allows usage of Address in std::unordered_map/set.
Definition WsfCommAddress.hpp:185
Definition Acmid.cpp:17
Copyrights Multiple, All Rights Reserved