WSF
WsfUCI_MessageFactory.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_MESSAGEFACTORY_HPP
13#define WSFUCI_MESSAGEFACTORY_HPP
14
15#include <map>
16#include <memory>
17
18#include "uci/type/MessageType.h"
19#include "UtMemory.hpp"
20#include "WsfMessage.hpp"
21
22namespace wsf
23{
24
25class UCI_Interface;
27
30{
31 public:
32 explicit UCI_MessageFactory(UCI_Interface& aInterface);
34
35 std::unique_ptr<UCI_MessageBaseType> Create(const uci::type::MessageType* aMessage) const;
36
37 private:
38
39 UCI_Interface& mInterface;
40};
41
42} // wsf
43#endif
The OMS / UCI Interface Object to the UCI middleware.
Definition WsfUCI_Interface.hpp:118
Definition WsfUCI_MessageBaseType.hpp:28
std::unique_ptr< UCI_MessageBaseType > Create(const uci::type::MessageType *aMessage) const
Create a message type based on the type provided in the message header (see uci/type/accessorType....
Definition WsfUCI_MessageFactory.cpp:31
UCI_MessageFactory(UCI_Interface &aInterface)
Definition WsfUCI_MessageFactory.cpp:21
~UCI_MessageFactory()
Definition WsfUCI_MessageFactory.cpp:26
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved