Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Attributes | Private Types | Private Attributes | Static Private Attributes
jafar::ddf::CommBase Class Reference

This is the base class for channel filter communication. More...


Detailed Description

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.

Author:
Pierre Lamon

Definition at line 37 of file commbase.hpp.

#include <commbase.hpp>

Inheritance diagram for jafar::ddf::CommBase:
Inheritance graph
[legend]

List of all members.

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< InfoContainerFifo_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

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

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS