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

The class that is the interface between the GUI and the back-end. More...

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

Classes

struct  DtEmitterModeDataRecord
 Data structure used by this class to store entity data. More...

Public Member Functions

 DtEmitterModesRequestor (makVrv::DtDe &)
 CTOR.
virtual ~DtEmitterModesRequestor ()
 Destructor.
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.
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.
virtual std::vector< intemitterIdsFor (const DtUUID &entity) const
 Gets the cached emitter ids for all emitters on an entity.
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.
virtual bool hasModesFor (const DtUUID &entity) const
 Checks to see if there are modes in the cache for an entity.
virtual bool hasEmitterFor (const DtUUID &entity, int id) const
 Checks to see if the emitter id exists for this entity.
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.
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.
virtual void requestModes (const DtUUID &entity)=0
 Request an update to the cached data from the sim for a specific entity.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Public Attributes

boost::signal< void(DtUUID, int)> signal_modesReceived
 Signal sent when new data has arrived for a particular entity and its emitter id.

Protected Member Functions

virtual void slot_onSimDataRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *state)
 Handles the removal of the cache data when an entity is removed.
virtual void processModes (const DtUUID &, const DtRadarModesAdmin &)
 Processes the general contents of a radar mode admin messages, used by other mode requestors.

Protected Attributes

makVrv::DtDemyDe
std::map< DtUUID,
DtEmitterModeDataRecord
myEntitiesTable
makVrv::DtSignalConnectionManager myConnections

Detailed Description

The class that is the interface between the GUI and the back-end.

Constructor & Destructor Documentation

makVrf::DtEmitterModesRequestor::DtEmitterModesRequestor ( makVrv::DtDe )

CTOR.

virtual makVrf::DtEmitterModesRequestor::~DtEmitterModesRequestor ( )
virtual

Destructor.

Member Function Documentation

virtual std::string makVrf::DtEmitterModesRequestor::currentModeFor ( const DtUUID entity,
int  emitterId 
) const
virtual

Gets the cached current mode for an entity given an emitter id for that entity.

virtual std::string makVrf::DtEmitterModesRequestor::emitterNameFor ( const DtUUID entity,
int  emitterId 
) const
virtual

Gets the cached emitter name for an entity given an emitter id for that entity.

virtual std::vector<int> makVrf::DtEmitterModesRequestor::emitterIdsFor ( const DtUUID entity) const
virtual

Gets the cached emitter ids for all emitters on an entity.

virtual std::vector<std::string> makVrf::DtEmitterModesRequestor::modesFor ( const DtUUID entity,
int  emitterId 
) const
virtual

Gets all the cached modes for an entity given an emitter id for that entity.

virtual bool makVrf::DtEmitterModesRequestor::hasModesFor ( const DtUUID entity) const
virtual

Checks to see if there are modes in the cache for an entity.

virtual bool makVrf::DtEmitterModesRequestor::hasEmitterFor ( const DtUUID entity,
int  id 
) const
virtual

Checks to see if the emitter id exists for this entity.

virtual int makVrf::DtEmitterModesRequestor::groupIdsAndModes ( std::vector< DtUUID entities,
std::vector< int > &  returnIds,
std::vector< std::string > &  returnModes 
)
virtual

Given a list of entities, gets the intersection of emitter ids and those id's modes and returns them in single lists.

Intersection meaning commonality between the entities in cache.

virtual int makVrf::DtEmitterModesRequestor::groupModes ( std::vector< DtUUID entities,
int  emitterId,
std::vector< std::string > &  returnModes 
)
virtual

Given a list of entities, gets the intersection of the specified id's modes and returns them in a single list.

Intersection meaning commonality between the entities in cache.

virtual void makVrf::DtEmitterModesRequestor::requestModes ( const DtUUID entity)
pure virtual

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

Implemented in makVrf::DtActiveSonarModeRequestor, makVrf::DtJammingModeRequestor, and makVrf::DtRadarModeRequestor.

virtual void makVrf::DtEmitterModesRequestor::slot_onSimDataRemoved ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  state)
protectedvirtual

Handles the removal of the cache data when an entity is removed.

virtual void makVrf::DtEmitterModesRequestor::processModes ( const DtUUID ,
const DtRadarModesAdmin  
)
protectedvirtual

Processes the general contents of a radar mode admin messages, used by other mode requestors.

Member Data Documentation

boost::signal<void (DtUUID, int)> makVrf::DtEmitterModesRequestor::signal_modesReceived

Signal sent when new data has arrived for a particular entity and its emitter id.

makVrv::DtDe& makVrf::DtEmitterModesRequestor::myDe
protected
std::map<DtUUID, DtEmitterModeDataRecord> makVrf::DtEmitterModesRequestor::myEntitiesTable
protected
makVrv::DtSignalConnectionManager makVrf::DtEmitterModesRequestor::myConnections
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)