Jafar
|
This is the base class for channel filter communication. More...
This is the base class for channel filter communication.
The derived class have to implement the low level communication functions. The creation, connection and deconnection of channel filters are handled by the channel filter manager.
Definition at line 37 of file commbase.hpp.
#include <commbase.hpp>
Public Types | |
enum | EC_STATUS { EC_OK, EC_TIMEOUT, EC_SEND_FAILURE, EC_READ_FAILURE, EC_READ_EMPTY } |
Public Member Functions | |
CommBase (unsigned short sv_size) | |
CommBase (unsigned short sv_size, key_t comm_key) | |
void | SetInitialized () |
void | WaitInitialized () |
unsigned short | GetSvSize () const |
SN_INFO_TYPE | GetDirection () const |
key_t | GetCommId () const |
unsigned short | GetID () |
void | ResetJustReceived () |
bool | HasJustReceivedInfo () const |
void | StoreIncoming (InfoContainer const &info) |
void | GetClosestInfo (time const &horizon, InfoContainer &info) |
bool | Sync_Ok () const |
virtual EC_STATUS | Send (InfoContainer const &inno)=0 |
virtual EC_STATUS | Read ()=0 |
Protected Attributes | |
bool | m_just_received |
Private Types | |
enum | CHAN_SYNC_STATUS { CHAN_FIFO_EMPTY, CHAN_FIFO_OK, CHAN_FIFO_FAILURE } |
typedef std::deque< InfoContainer > | Fifo_chan_type |
Private Attributes | |
unsigned short | m_sv_size |
key_t | m_comm_id |
unsigned short | m_id |
Fifo_chan_type | m_fifo |
boost::mutex | m_fifomutex |
CHAN_SYNC_STATUS | m_sync_status |
SN_INFO_TYPE | m_direction |
bool | m_initialized |
Static Private Attributes | |
static unsigned short | m_static_id |
Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1 |