trkwsMANAGED_LCU
Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:11
Index
Return to man pages list
NAME
trkwsMANAGED_LCU - class to manage event setup for LCUs
currently involved in tracking.
SYNOPSIS
#include "trkwsMANAGED_LCU.h"
class trkwsMANAGED_LCU : public fndOBJECT, public eccsERROR_CLASS
{
public:
trkwsMANAGED_LCU(const dbSYMADDRESS dbPoint);
~trkwsMANAGED_LCU();
virtual const char *DbPoint();
virtual ccsCOMPL_STAT DbPoint(const dbSYMADDRESS dbPoint);
virtual ccsCOMPL_STAT EnableEvents();
virtual ccsCOMPL_STAT DisableEvents();
virtual void EvtRegister(evtEVENT * evt,char * dbAttr,evhCB_METHOD DbEventCB);
virtual void EvtDetach(evtEVENT * evt,evhCB_METHOD DbEventCB);
virtual ccsCOMPL_STAT RemTrkTimeSetCB(evhCALLBACK &cb);
virtual evhCB_COMPL_STAT LimitEventCB(msgMESSAGE &msg, void *);
virtual evhCB_COMPL_STAT RemTrkTimeEventCB(msgMESSAGE &msg, void *);
virtual evhCB_COMPL_STAT StateEventCB(evtEVENT_MSG &msg, void *);
protected:
private:
dbSYMADDRESS dbPoint;
evtEVENT limitEvent;
evtEVENT remTrkTimeEvent;
evtEVENT stateEvent;
evhCALLBACK *rttCB;
};
PARENT CLASS
fndOBJECT, public eccsERROR_CLASS
PUBLIC METHODS
trkwsMANAGED_LCU(const dbSYMADDRESS dbPoint)
Thre constructor receives as parameter the symbolic address of
the base point of the scanned up mirror of the LCU DB in the trkws DB
~trkwsMANAGED_LCU();
virtual const char *DbPoint();
Returns the base point of the mirror of the LCU DB in the trkws DB
virtual ccsCOMPL_STAT DbPoint(const dbSYMADDRESS dbPoint);
Sets the base point of the mirror of the LCU DB in the trkws DB
virtual ccsCOMPL_STAT EnableEvents();
Registers events for the db attributes that have to be watched
virtual ccsCOMPL_STAT DisableEvents();
Detaches the events, e.g. if LCU no longer in the light beam
virtual void EvtRegister(evtEVENT * evt,char * dbAttr,evhCB_METHOD DbEventCB);
Generic event register method used internally
virtual void EvtDetach(evtEVENT * evt,evhCB_METHOD DbEventCB);
Generic event detach method used internally
virtual ccsCOMPL_STAT RemTrkTimeSetCB(evhCALLBACK &cb);
This method is used by the object that uses a trkwsMANAGED_LCU object
to register a callback in it's on class to be called for every occurrence
of a RTT event. As RTT is depending on all involved LCU's the final
computation has to occurr at this higher level.
virtual evhCB_COMPL_STAT LimitEventCB(msgMESSAGE &msg, void *);
This is the callback to be run if an LCU reports that it ran into a limit
virtual evhCB_COMPL_STAT RemTrkTimeEventCB(msgMESSAGE &msg, void *);
This is the callback run for a change in the remaining trk time attibute
It calls the callback installed with RemTrkTimeSetCB if this is set.
virtual evhCB_COMPL_STAT StateEventCB(evtEVENT_MSG &msg, void *);
This is the callback run for a change in substate of the corresponding
LCU. If the old substate was TRACKING, a STOP cmd is sent to all LCUs.
evhCB_COMPL_STAT trkwsMANAGED_LCU::CompletedCB(msgMESSAGE &msg, void *);
This method is used to return the reply of the process that the message
went to also to the original caller.
PRIVATE DATA MEMBERS
dbSYMADDRESS dbPoint;
To keep base point of mirror of LCU DB
evtEVENT limitEvent;
object needed for event management
evtEVENT remTrkTimeEvent;
object needed for event management
evtEVENT stateEvent;
object needed for event management
evhCALLBACK *rttCB;
callback set with RemTrkTimeSetCB method
ON LINE DATABASE
This class uses attributes relative to the path given in dbPoint:
.rem_track_time
.limitFlag
.substate
Index
- NAME
-
- SYNOPSIS
-
- PARENT CLASS
-
- PUBLIC METHODS
-
- PRIVATE DATA MEMBERS
-
- ON LINE DATABASE
-
This document was created by
man2html,
using the manual pages.
Time: 10:11:26 GMT, April 23, 2012