VR-Forces 4.1.1 Class Documentation
List of all members | Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtHatHotResponder Class Reference

A DtHatHotResponder receives HAT/HOT requests from CIGI and either initiates an immediate request or adds a periodic request. More...

Classes

struct  HatHotData

Public Member Functions

 DtHatHotResponder (DtCigiConnection &connection)
 Constructor.
virtual ~DtHatHotResponder ()
 Destructor.
virtual void addPeriodicHatHotRequest (DtUniqueID entityId, const DtVector &loc, int frequency, int hatHotId, bool hatRequest)
 Adds a periodic request.
virtual void processHatHotRequests ()
 Iterates through periodic requests and sends a response if needed.

Public Attributes

boost::signal< void(DtUniqueID,
const DtVector &, unsigned int,
bool, unsigned int)> 
signal_hatHotRequested
 Signal caught by the intersection handler.

Protected Member Functions

void processHatHotRequest (const CigiHatHotReqV3_2 &hatHotReq)
 Takes the CIGI packet, extracts the data, and either sends a response or adds a periodic request.
virtual void sendHatHotRequest (DtUniqueID entityId, const DtVector &loc, int hatHotId, bool hatRequest)
 Signals to the intersection handler that we want to initiate a HAT/HOT request.

Protected Attributes

std::map< int, HatHotDatamyHatHotRequests
DtCigiConnectionmyConnection

Detailed Description

A DtHatHotResponder receives HAT/HOT requests from CIGI and either initiates an immediate request or adds a periodic request.

Contains the queue of responses used by the DtCigiConnection, and emits the signal caught by the DtCigiIntersectionHandler.

Constructor & Destructor Documentation

makVrv::DtHatHotResponder::DtHatHotResponder ( DtCigiConnection connection)

Constructor.

virtual makVrv::DtHatHotResponder::~DtHatHotResponder ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtHatHotResponder::addPeriodicHatHotRequest ( DtUniqueID  entityId,
const DtVector loc,
int  frequency,
int  hatHotId,
bool  hatRequest 
)
virtual

Adds a periodic request.

virtual void makVrv::DtHatHotResponder::processHatHotRequests ( )
virtual

Iterates through periodic requests and sends a response if needed.

void makVrv::DtHatHotResponder::processHatHotRequest ( const CigiHatHotReqV3_2 &  hatHotReq)
protected

Takes the CIGI packet, extracts the data, and either sends a response or adds a periodic request.

virtual void makVrv::DtHatHotResponder::sendHatHotRequest ( DtUniqueID  entityId,
const DtVector loc,
int  hatHotId,
bool  hatRequest 
)
protectedvirtual

Signals to the intersection handler that we want to initiate a HAT/HOT request.

Member Data Documentation

boost::signal<void (DtUniqueID, const DtVector&, unsigned int, bool, unsigned int)> makVrv::DtHatHotResponder::signal_hatHotRequested

Signal caught by the intersection handler.

std::map<int, HatHotData> makVrv::DtHatHotResponder::myHatHotRequests
protected
DtCigiConnection& makVrv::DtHatHotResponder::myConnection
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)