WSF
WsfDisUtil Namespace Reference

Functions

WSF_EXPORT bool DebugEnabled (WsfDisInterface *aInterfacePtr)
WSF_EXPORT WsfDisPlatformFindDisPlatform (WsfDisInterface *aInterfacePtr, const DisEntityId &aEntityId)
WSF_EXPORT WsfDisPlatformGetDisPlatform (WsfDisInterface *aInterfacePtr, size_t aPlatformIndex)
WSF_EXPORT void GetEntityIdFromIndex (WsfDisInterface *aInterfacePtr, size_t aPlatformIndex, DisEntityId &aEntityId)
WSF_EXPORT WsfExtInterfaceGetExtInterface (WsfDisInterface *aInterfacePtr)
WSF_EXPORT DisUint32 GetNextRequestNumber (WsfDisInterface *aInterfacePtr)
WSF_EXPORT DisUint8 GetReliabilityService (WsfDisInterface *aInterfacePtr)
WSF_EXPORT const WsfScenarioGetScenario (WsfDisInterface *aInterfacePtr)
WSF_EXPORT WsfSimulationGetSimulation (WsfDisInterface *aInterfacePtr)
WSF_EXPORT double GetSimTime (WsfDisInterface *aInterfacePtr)
WSF_EXPORT double GetTimeFromPdu (WsfDisInterface *aInterfacePtr, DisPdu &aPdu)
WSF_EXPORT void PutPdu (WsfDisInterface *aInterfacePtr, double aSimTime, std::unique_ptr< DisPdu > aPduPtr)
WSF_EXPORT void SimTimeToDisClockTime (double aSimTime, DisClockTime &aDisClockTime)
WSF_EXPORT bool WsfToDisPlayers (WsfDisInterface *aInterfacePtr, size_t aOriginatingIndex, size_t aRequestingIndex, size_t aRespondingIndex, bool &aSenderIsRequestor, bool &aSenderIsResponder, bool &aRequestorIsLocal, bool &aResponderIsLocal, WsfDisPlatform *&aRequesterPtr, WsfDisPlatform *&aResponderPtr, DisEntityId &aOriginatingId, DisEntityId &aRequestorId, DisEntityId &aResponderId)
WSF_EXPORT bool DisToWsfPlayers (WsfDisInterface *aInterfacePtr, const DisEntityId &aOriginatingId, const DisEntityId &aRequestorId, const DisEntityId &aResponderId, bool &aSenderIsRequestor, bool &aSenderIsResponder, bool &aRequestorIsLocal, bool &aResponderIsLocal, WsfDisPlatform *&aRequesterPtr, WsfDisPlatform *&aResponderPtr, size_t &aRequestingIndex, size_t &aRespondingIndex)

Detailed Description

A collection of utility functions that eliminate the need to include WsfDisInterface.hpp.

WsfDisInterface.hpp is a very complex header file and simply including it causes the compile time for a file to increase dramatically. By implementing the following methods below, which are simply pass-through to the same-named method in WsfDisInterface, the inclusion of WsfDisInterface.hpp was removed from many files.

There is obviously a very small run-time penalty because of the extra level of indirection, but any extra time is dwarfed by the rest of the simulation.

See also
WsfDisInterface.

Function Documentation

◆ DebugEnabled()

bool WsfDisUtil::DebugEnabled ( WsfDisInterface * aInterfacePtr)

References WsfDisInput::DebugEnabled().

Referenced by WsfDisActionRequestR::ParseData(), WsfDisSetDataR::ParseTimeParameters(), WsfDisSetRecordR::PopulateReply(), WsfDisRecordQueryR::PopulateResponse(), WsfDisSetDataR::PopulateResponse(), WsfDisActionRequest::Process(), WsfDisDataQuery::Process(), WsfDisDataQueryR::Process(), WsfDisDirectedEnergyFire::Process(), WsfDisRemoveEntity::Process(), WsfDisSetData::Process(), WsfDisSetRecordR::Process(), WsfDisStartResume::Process(), WsfDisStopFreeze::Process(), WsfDisStopFreezeR::Process(), WsfDisCreateEntityR::ProcessCreateEntityRequest(), WsfDisActionRequestR::ProcessJoinExercise(), WsfDisActionResponse::ProcessJoinExerciseResponseTo(), WsfDisActionResponseR::ProcessJoinExerciseResponseTo(), WsfDisRemoveEntityR::ProcessRemoveEntityRequest(), WsfDisActionRequestR::ProcessResignExercise(), WsfDisActionResponse::ProcessResponseTo(), WsfDisActionResponseR::ProcessResponseTo(), WsfDisDataR::ProcessResponseTo(), WsfDisSetDataR::ProcessSetDataRequest(), WsfDisSetRecordR::ProcessSetRecordRequest(), WsfDisStartResumeR::ProcessStartCommand(), WsfDisActionRequestR::ProcessTimeAdvance(), WsfDisActionRequestR::ProduceResponse(), WsfDisDataQueryR::ProduceResponse(), WsfDisAcknowledgeR::TimedOut(), WsfDisActionRequestR::TimedOut(), WsfDisCreateEntityR::TimedOut(), WsfDisDataQueryR::TimedOut(), WsfDisRecordQueryR::TimedOut(), WsfDisRemoveEntityR::TimedOut(), WsfDisSetDataR::TimedOut(), WsfDisSetRecordR::TimedOut(), WsfDisStartResumeR::TimedOut(), and WsfDisStopFreezeR::TimedOut().

◆ DisToWsfPlayers()

bool WsfDisUtil::DisToWsfPlayers ( WsfDisInterface * aInterfacePtr,
const DisEntityId & aOriginatingId,
const DisEntityId & aRequestorId,
const DisEntityId & aResponderId,
bool & aSenderIsRequestor,
bool & aSenderIsResponder,
bool & aRequestorIsLocal,
bool & aResponderIsLocal,
WsfDisPlatform *& aRequesterPtr,
WsfDisPlatform *& aResponderPtr,
size_t & aRequestingIndex,
size_t & aRespondingIndex )

◆ FindDisPlatform()

◆ GetDisPlatform()

◆ GetEntityIdFromIndex()

void WsfDisUtil::GetEntityIdFromIndex ( WsfDisInterface * aInterfacePtr,
size_t aPlatformIndex,
DisEntityId & aEntityId )

◆ GetExtInterface()

◆ GetNextRequestNumber()

◆ GetReliabilityService()

◆ GetScenario()

const WsfScenario & WsfDisUtil::GetScenario ( WsfDisInterface * aInterfacePtr)

◆ GetSimTime()

◆ GetSimulation()

◆ GetTimeFromPdu()

◆ PutPdu()

◆ SimTimeToDisClockTime()

void WsfDisUtil::SimTimeToDisClockTime ( double aSimTime,
DisClockTime & aDisClockTime )

◆ WsfToDisPlayers()

bool WsfDisUtil::WsfToDisPlayers ( WsfDisInterface * aInterfacePtr,
size_t aOriginatingIndex,
size_t aRequestingIndex,
size_t aRespondingIndex,
bool & aSenderIsRequestor,
bool & aSenderIsResponder,
bool & aRequestorIsLocal,
bool & aResponderIsLocal,
WsfDisPlatform *& aRequesterPtr,
WsfDisPlatform *& aResponderPtr,
DisEntityId & aOriginatingId,
DisEntityId & aRequestorId,
DisEntityId & aResponderId )
Copyrights Multiple, All Rights Reserved