WSF
WsfXIO_SimService.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 2003-2015 The Boeing 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_SIMSERVICE_HPP
13#define WSFXIO_SIMSERVICE_HPP
14
15#include <utility>
16#include <vector>
17
18class WsfSimulation;
20
22{
23public:
24 WsfXIO_SimService(WsfXIO_Interface* aInterfacePtr);
25
26 void Initialize(WsfSimulation& aSimulation);
27
28 void AddRequiredPlatform(WsfPlatform& aPlatform, WsfXIO_Subscription* aSubscriptionPtr);
29
30protected:
31 void RemovingSubscription(WsfXIO_Subscription* aSubscriptionPtr) override;
32
33private:
34 void HandlePlatformDeleted(double aSimTime, WsfPlatform* aPlatformPtr);
35
36 typedef std::vector<std::pair<size_t, WsfXIO_Subscription*>> RequiredPlatformList;
37
38 RequiredPlatformList mRequiredPlatforms;
39};
40
41#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfXIO_Interface.hpp:54
WsfXIO_Service(WsfXIO_Interface *aInterfacePtr)
Definition WsfXIO_Service.cpp:21
virtual void RemovingSubscription(WsfXIO_Subscription *aSubscriptionPtr)
Definition WsfXIO_Service.hpp:65
void Initialize(WsfSimulation &aSimulation)
Definition WsfXIO_SimService.cpp:23
WsfXIO_SimService(WsfXIO_Interface *aInterfacePtr)
Definition WsfXIO_SimService.cpp:18
void AddRequiredPlatform(WsfPlatform &aPlatform, WsfXIO_Subscription *aSubscriptionPtr)
Adds a platform dependency on a subscription. If the platform is destroyed, the subscription is cance...
Definition WsfXIO_SimService.cpp:29
A WsfXIO_Subscription wraps information about a remote request for information.
Definition WsfXIO_Subscription.hpp:30
Copyrights Multiple, All Rights Reserved