VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
makVrf::DtRadarModeRequestor Class Reference

Requests radar modes from back-end for given entities and caches the data. More...

Inheritance diagram for makVrf::DtRadarModeRequestor:
Inheritance graph
[legend]

Public Member Functions

 DtRadarModeRequestor (makVrv::DtDe &)
 CTOR. More...
 
virtual ~DtRadarModeRequestor ()
 Destructor. More...
 
virtual void requestModes (const DtUUID &entity)
 Request an update to the cached data from the sim for a specific entity. More...
 
- Public Member Functions inherited from makVrf::DtEmitterModesRequestor
 DtEmitterModesRequestor (makVrv::DtDe &)
 CTOR. More...
 
virtual ~DtEmitterModesRequestor ()
 Destructor. More...
 
virtual std::string currentModeFor (const DtUUID &entity, int emitterId) const
 Gets the cached current mode for an entity given an emitter id for that entity. More...
 
virtual std::string emitterNameFor (const DtUUID &entity, int emitterId) const
 Gets the cached emitter name for an entity given an emitter id for that entity. More...
 
virtual std::vector< intemitterIdsFor (const DtUUID &entity) const
 Gets the cached emitter ids for all emitters on an entity. More...
 
virtual std::vector< std::string > modesFor (const DtUUID &entity, int emitterId) const
 Gets all the cached modes for an entity given an emitter id for that entity. More...
 
virtual bool hasModesFor (const DtUUID &entity) const
 Checks to see if there are modes in the cache for an entity. More...
 
virtual bool hasEmitterFor (const DtUUID &entity, int id) const
 Checks to see if the emitter id exists for this entity. More...
 
virtual int groupIdsAndModes (std::vector< DtUUID > entities, std::vector< int > &returnIds, std::vector< std::string > &returnModes)
 Given a list of entities, gets the intersection of emitter ids and those id's modes and returns them in single lists. More...
 
virtual int groupModes (std::vector< DtUUID > entities, int emitterId, std::vector< std::string > &returnModes)
 Given a list of entities, gets the intersection of the specified id's modes and returns them in a single list. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

static DtRadarModeRequestorinstance (makVrv::DtDe &de)
 Returns instance of the DtRadarModeRequestor. More...
 
static void registerInstance (makVrv::DtDe &de, DtRadarModeRequestor *object)
 Register a subclass version of this class. More...
 

Protected Member Functions

virtual void processRadarModes (const DtVrfObjectMessage *msg)
 Handles radar mode updates either requested by updateRadarModes() or from general state updates occuring from the sim. More...
 
- Protected Member Functions inherited from makVrf::DtEmitterModesRequestor
virtual void slot_onSimDataRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *state)
 Handles the removal of the cache data when an entity is removed. More...
 
virtual void processModes (const DtUUID &, const DtRadarModesAdmin &)
 Processes the general contents of a radar mode admin messages, used by other mode requestors. More...
 

Additional Inherited Members

- Public Attributes inherited from makVrf::DtEmitterModesRequestor
boost::signals2::signal< void(DtUUID,
int)> 
signal_modesReceived
 Signal sent when new data has arrived for a particular entity and its emitter id. More...
 
- Protected Attributes inherited from makVrf::DtEmitterModesRequestor
makVrv::DtDemyDe
 
std::map< DtUUID,
DtEmitterModeDataRecord
myEntitiesTable
 
makVrv::DtSignalConnectionManager myConnections
 

Detailed Description

Requests radar modes from back-end for given entities and caches the data.

The data should be updated by the sim when updates are either requested or data is updated due to other circumstances such as an entity deletion or state change.

Constructor & Destructor Documentation

makVrf::DtRadarModeRequestor::DtRadarModeRequestor ( makVrv::DtDe )

CTOR.

virtual makVrf::DtRadarModeRequestor::~DtRadarModeRequestor ( )
virtual

Destructor.

Member Function Documentation

static DtRadarModeRequestor& makVrf::DtRadarModeRequestor::instance ( makVrv::DtDe de)
static

Returns instance of the DtRadarModeRequestor.

static void makVrf::DtRadarModeRequestor::registerInstance ( makVrv::DtDe de,
DtRadarModeRequestor object 
)
static

Register a subclass version of this class.

the instance() function will return the newly registered version once this has been called.

virtual void makVrf::DtRadarModeRequestor::requestModes ( const DtUUID entity)
virtual

Request an update to the cached data from the sim for a specific entity.

Implements makVrf::DtEmitterModesRequestor.

virtual void makVrf::DtRadarModeRequestor::processRadarModes ( const DtVrfObjectMessage msg)
protectedvirtual

Handles radar mode updates either requested by updateRadarModes() or from general state updates occuring from the sim.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)