WSF
WsfDisSetDataR.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// Updated by Infoscitex, a DCS Company.
13// ****************************************************************************
14
15#ifndef WSFDISSETDATAR_HPP
16#define WSFDISSETDATAR_HPP
17
18#include "wsf_export.h"
19
20#include "DisEntityId.hpp"
21#include "DisSetDataR.hpp"
22class WsfDisInterface;
23class WsfDisDataR;
24
25class WSF_EXPORT WsfDisSetDataR : public DisSetDataR
26{
27public:
28 WsfDisSetDataR(WsfDisInterface* aInterfacePtr);
29 WsfDisSetDataR(DisPdu& aPdu, GenI& aGenI, WsfDisInterface* aInterfacePtr);
30 ~WsfDisSetDataR() override;
31
32 void TimedOut() override;
33
37
38 // This method prepares the PDU to be used as either/or a
39 // 'Set Time Parameters' or a 'Time Advance Grant" service request:
40 void Make_STP_or_TAG(double aSimTime, double aSimTimeStep, double aSimRate, int aTimeScheme);
41
42protected:
43 // Disallow assignment <--authors comment. code must predate c++ 11...
44 WsfDisSetDataR& operator=(const WsfDisSetDataR& aRhs) = delete;
45 WsfDisDataR* ProduceResponse(bool& aIsDone);
47 bool PopulateResponse(WsfDisDataR* aResponsePduPtr) const;
48 bool ParseTimeParameters(double& aSimTime, double& aSimTimeStep, double& aSimRate, int& aTimeScheme) const;
49
50private:
51 WsfDisInterface* mInterfacePtr;
52};
53
54#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfDisDataR.hpp:24
Definition WsfDisInterface.hpp:83
bool PopulateResponse(WsfDisDataR *aResponsePduPtr) const
Definition WsfDisSetDataR.cpp:65
bool ParseTimeParameters(double &aSimTime, double &aSimTimeStep, double &aSimRate, int &aTimeScheme) const
Definition WsfDisSetDataR.cpp:203
WsfDisDataR * ProduceResponse(bool &aIsDone)
Definition WsfDisSetDataR.cpp:146
WsfDisSetDataR(WsfDisInterface *aInterfacePtr)
Definition WsfDisSetDataR.cpp:40
WsfDisSetDataR & operator=(const WsfDisSetDataR &aRhs)=delete
void TimedOut() override
Definition WsfDisSetDataR.cpp:162
void Make_STP_or_TAG(double aSimTime, double aSimTimeStep, double aSimRate, int aTimeScheme)
Definition WsfDisSetDataR.cpp:170
bool ProcessSetDataRequest()
Definition WsfDisSetDataR.cpp:279
Copyrights Multiple, All Rights Reserved