WSF
WsfXIO_EventPipe.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 WSFXIO_EVENTPIPE_HPP
13#define WSFXIO_EVENTPIPE_HPP
14
15#include "GenUniqueId.hpp"
16#include "WsfEventPipe.hpp"
17
19class WsfSimulation;
20
21namespace wsf
22{
23namespace xio
24{
25
27{
28public:
29 static void RegisterEvents(WsfEventPipeExtension& aEventPipeExtension);
30
31 explicit EventPipe(WsfEventPipeInterface& aEventPipeInterface);
32
33 void UpdateSubscriptions(const WsfEventPipeOptions& aNewCombinedOptions,
34 const WsfEventPipeOptions& aPreviousCombinedOptions) override;
35
36private:
37 double GetSimTime() const;
38
39 void HeartbeatImpl(double aTimeStamp, GenUniqueId aApplicationId, bool aReceived);
40
41 WsfSimulation& mSimulation;
42 WsfEventPipeInterface& mEventPipe;
43
44 UtCallbackHolder mCallbacks;
45
46 const int cXIO;
47 bool mXioEnabled;
48};
49
50} // namespace xio
51} // namespace wsf
52
53#endif
Scenario extension for event pipe. Reads the input file.
Definition WsfEventPipe.hpp:36
Definition WsfEventPipeInterface.hpp:87
Definition WsfEventPipeLogger.hpp:20
Definition WsfEventPipeOptions.hpp:23
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Sent at regular intervals over the UDP connections.
Definition WsfXIO_PacketRegistry.hpp:91
EventPipe(WsfEventPipeInterface &aEventPipeInterface)
Definition WsfXIO_EventPipe.cpp:35
static void RegisterEvents(WsfEventPipeExtension &aEventPipeExtension)
Definition WsfXIO_EventPipe.cpp:30
void UpdateSubscriptions(const WsfEventPipeOptions &aNewCombinedOptions, const WsfEventPipeOptions &aPreviousCombinedOptions) override
Definition WsfXIO_EventPipe.cpp:48
Definition WsfXIO.hpp:22
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved