#include <EDDDataSource.h>
Public Member Functions | |
tcEDDDataSource (void) | |
virtual | ~tcEDDDataSource (void) |
void | RegisterWithMsgLoop (void) |
void | UnRegisterWithMsgLoop (void) |
void | SendSourceDescMsg (char **apFields, char **apItems, int NumItems) |
void | BuildHeader (tsEDDMsgHdr *apMsgHdr, uint16_t MsgID, uint16_t len) |
bool | IsSubscribed (void) |
virtual int | HandleMsg (tsEDDMsgHdr *apMsg)=0 |
Public Attributes | |
uint32_t | mnBytesSent |
number of bytes transmitted | |
Protected Attributes | |
int | mnSourceId |
EDD Data Source Source ID. |
Abstraction class for Embedded Data Display (EDD) Data Source. All EDD Data Sources (e.g., tcEDDPlotDataSource, tcEDDImagaDataSource) must derive from this class. This class is responsible for interfacing with the underlying EDD Message Loop (tcEDDMsgLoop) class, including registering and unregistering with the server loop.
Definition at line 24 of file EDDDataSource.h.
tcEDDDataSource::tcEDDDataSource | ( | void | ) |
Definition at line 15 of file EDDDataSource.cpp.
tcEDDDataSource::~tcEDDDataSource | ( | void | ) | [virtual] |
Definition at line 21 of file EDDDataSource.cpp.
void tcEDDDataSource::BuildHeader | ( | tsEDDMsgHdr * | apMsgHdr, | |
uint16_t | MsgID, | |||
uint16_t | len | |||
) |
Definition at line 80 of file EDDDataSource.cpp.
virtual int tcEDDDataSource::HandleMsg | ( | tsEDDMsgHdr * | apMsg | ) | [pure virtual] |
Handle a directed message from an EDD client, typically a data information/description request.
Implemented in tcEDDImageDataSource, and tcEDDPlotDataSource.
bool tcEDDDataSource::IsSubscribed | ( | void | ) |
Definition at line 74 of file EDDDataSource.cpp.
void tcEDDDataSource::RegisterWithMsgLoop | ( | void | ) |
Definition at line 26 of file EDDDataSource.cpp.
void tcEDDDataSource::SendSourceDescMsg | ( | char ** | apFields, | |
char ** | apItems, | |||
int | NumItems | |||
) |
Definition at line 41 of file EDDDataSource.cpp.
void tcEDDDataSource::UnRegisterWithMsgLoop | ( | void | ) |
Definition at line 32 of file EDDDataSource.cpp.
uint32_t tcEDDDataSource::mnBytesSent |
int tcEDDDataSource::mnSourceId [protected] |