ARPDAS_QNX6 1.0
Public Member Functions | Protected Attributes
TM_Selectee Class Reference

#include <SerSelector.h>

Inheritance diagram for TM_Selectee:
Collaboration diagram for TM_Selectee:

List of all members.

Public Member Functions

 TM_Selectee (const char *name, void *data, unsigned short size)
 TM_Selectee ()
 ~TM_Selectee ()
void init (const char *name, void *data, unsigned short size)
int ProcessData (int flag)

Protected Attributes

send_id TMid

Detailed Description

A Selectee wrapper for Col_send() and friends to support sending data to collection. The data structure should be defined in a header file shared with collection and declared in tmc as 'TM "Receive" <name> 1'. The 1 indicates that data will be reported synchronously to telemetry. The intention is that the same data structure will be shared with another Selectee (possibly one derived from Ser_Sel) to record data as it is received.

Whenever the data is written to telemetry, Selector::set_gflag(0) is called. Another Selectee can request to be notified of this by setting bit Selector::gflag(0) in their flags word.

For tighter control over acquisition and reporting, you can overload ProcessData() in a subclass.

Definition at line 26 of file SerSelector.h.


Constructor & Destructor Documentation

TM_Selectee::TM_Selectee ( const char *  name,
void *  data,
unsigned short  size 
)

Definition at line 12 of file SerSelector.cc.

References init().

Here is the call graph for this function:

TM_Selectee::TM_Selectee ( )

Definition at line 17 of file SerSelector.cc.

References TMid.

TM_Selectee::~TM_Selectee ( )

Issues Col_send_reset()

Definition at line 33 of file SerSelector.cc.

References Col_send_reset(), Selectee::fd, and TMid.

Here is the call graph for this function:


Member Function Documentation

void TM_Selectee::init ( const char *  name,
void *  data,
unsigned short  size 
)

Definition at line 21 of file SerSelector.cc.

References Col_send_init(), send_id_struct::fd, Selectee::fd, Selectee::flags, Selector::Sel_Write, and TMid.

Referenced by TM_Selectee().

Here is the call graph for this function:

Here is the caller graph for this function:

int TM_Selectee::ProcessData ( int  flag) [virtual]

Calls Col_send() and sets gflag(0)

Implements Selectee.

Definition at line 41 of file SerSelector.cc.

References Col_send(), Selector::set_gflag(), Selectee::Stor, and TMid.

Here is the call graph for this function:


Member Data Documentation

Definition at line 34 of file SerSelector.h.

Referenced by init(), ProcessData(), TM_Selectee(), and ~TM_Selectee().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines