WSF
WsfXIO_TaskRequest.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_TASKREQUEST_HPP
13#define WSFXIO_TASKREQUEST_HPP
14
15#include "wsf_export.h"
16
17#include "WsfStringId.hpp"
22
24{
25public:
27 unsigned int aPlatformIndex,
28 WsfStringId aProcessorName,
29 bool aTakeControl = false,
30 bool aIsReliable = true);
31
32 virtual void HandleInitialize(WsfXIO_TaskInitPkt& aPkt) = 0;
33 virtual void HandleUpdate(WsfXIO_TaskUpdatePkt& aPkt) = 0;
34
35protected:
36 void HandleResponse(WsfXIO_ResponsePkt& aPkt) override;
37 void Initialized() override;
38
40 unsigned int mPlatformIndex;
42};
43#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfXIO_Connection.hpp:37
virtual void HandleResponse(WsfXIO_ResponsePkt &aPkt)
Definition WsfXIO_Request.hpp:87
virtual void Initialized()=0
WsfXIO_Request(WsfXIO_Connection *aConnectionPtr, bool aIsReliable=true)
Definition WsfXIO_Request.cpp:160
Definition WsfXIO_PacketRegistry.hpp:171
Defines current state of the task manager processor. Response to WsfXIO_TaskRequestPkt.
Definition WsfXIO_PacketRegistry.hpp:676
WsfStringId mProcessorName
Definition WsfXIO_TaskRequest.hpp:41
unsigned int mPlatformIndex
Definition WsfXIO_TaskRequest.hpp:40
bool mTakeControl
Definition WsfXIO_TaskRequest.hpp:39
WsfXIO_TaskRequest(WsfXIO_Connection *aConnectionPtr, unsigned int aPlatformIndex, WsfStringId aProcessorName, bool aTakeControl=false, bool aIsReliable=true)
Definition WsfXIO_TaskRequest.cpp:16
virtual void HandleUpdate(WsfXIO_TaskUpdatePkt &aPkt)=0
virtual void HandleInitialize(WsfXIO_TaskInitPkt &aPkt)=0
Defines a change in a task. Assignment, cancellation, or completion. Response to WsfXIO_TaskRequestPk...
Definition WsfXIO_PacketRegistry.hpp:687
Copyrights Multiple, All Rights Reserved