WSF
WsfUCI_InterfaceExtension.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
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 WSFUCI_INTERFACEEXTENSION_HPP
13#define WSFUCI_INTERFACEEXTENSION_HPP
14
15#include <map>
16#include <memory>
17#include <string>
18
19#include "wsf_oms_uci_export.h"
20
21#include "WsfSimulation.hpp"
23
24namespace wsf
25{
26 class UCI_Component;
27 class UCI_Interface;
28
30 class WSF_OMS_UCI_EXPORT UCI_InterfaceExtension : public WsfSimulationExtension
31 {
32 public:
33
34 explicit UCI_InterfaceExtension() = default;
36 virtual ~UCI_InterfaceExtension() = default;
38
39 void AddedToSimulation() override;
40 static const char* GetExtensionName() { return "uci_component"; }
41 static const UCI_InterfaceExtension* Get(WsfSimulation& aSimulation);
42 UCI_Interface* GetInterface() const;
43
44 private:
45
46 std::shared_ptr<UCI_Interface> mInterfacePtr { nullptr };
47 mutable bool mInitialized { false };
48 std::string mSystemName { "default" };
49 std::string mDescriptor { "uci"};
50 };
51}
52
53#endif
WsfSimulationExtension()
Definition WsfSimulationExtension.cpp:23
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfUCI_Component.hpp:42
The OMS / UCI Interface Object to the UCI middleware.
Definition WsfUCI_InterfaceExtension.hpp:31
void AddedToSimulation() override
Definition WsfUCI_InterfaceExtension.cpp:21
static const char * GetExtensionName()
Definition WsfUCI_InterfaceExtension.hpp:40
UCI_InterfaceExtension(const UCI_InterfaceExtension &aSrc)=default
virtual ~UCI_InterfaceExtension()=default
UCI_InterfaceExtension & operator=(const UCI_InterfaceExtension &aRhs)=delete
The OMS / UCI Interface Object to the UCI middleware.
Definition WsfUCI_Interface.hpp:118
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved