ARPDAS_QNX6 1.0
Public Member Functions | Private Attributes | Static Private Attributes
DG_data Class Reference

#include <DG_data.h>

Inheritance diagram for DG_data:
Collaboration diagram for DG_data:

List of all members.

Public Member Functions

 DG_data (DG_dispatch *disp, const char *name, void *data, int data_size, int synch)
 ~DG_data ()
int ready_to_quit ()
int io_write (resmgr_context_t *ctp, IOFUNC_OCB_T *ocb, int nonblock)
void synch ()
int stale (int max_stale=SHRT_MAX)

Private Attributes

int dev_id
const char * name
int stale_count
void * dptr
int dsize
bool synched
struct data_dev_attr data_attr
struct data_dev_ocbblocked

Static Private Attributes

static resmgr_connect_funcs_t connect_funcs
static resmgr_io_funcs_t io_funcs
static bool funcs_initialized = false
static bool quitting = false

Detailed Description

Definition at line 29 of file DG_data.h.


Constructor & Destructor Documentation

DG_data::DG_data ( DG_dispatch disp,
const char *  name,
void *  data,
int  data_size,
int  synch 
)
DG_data::~DG_data ( )

Definition at line 98 of file DG_data.cc.


Member Function Documentation

int DG_data::io_write ( resmgr_context_t *  ctp,
IOFUNC_OCB_T *  ocb,
int  nonblock 
)
int DG_data::ready_to_quit ( ) [virtual]

DG_data::ready_to_quit() returns true if we are ready to terminate. For DG/data, that means all writers have closed their connections and we have detached the device.

Implements DG_dispatch_client.

Definition at line 173 of file DG_data.cc.

References data_dev_attr::attr, data_attr, dev_id, DG_dispatch_client::dispatch, DG_dispatch::dpp, name, nl_error, and quitting.

int DG_data::stale ( int  max_stale = SHRT_MAX)

Definition at line 134 of file DG_data.cc.

References stale_count.

void DG_data::synch ( )

Definition at line 124 of file DG_data.cc.

References blocked, data_attr, data_dev_ocb::msgsize, data_dev_attr::notify, data_dev_ocb::rcvid, and data_dev_attr::written.

Referenced by DG_data().

Here is the caller graph for this function:


Member Data Documentation

struct data_dev_ocb* DG_data::blocked [private]

Definition at line 38 of file DG_data.h.

Referenced by io_write(), and synch().

resmgr_connect_funcs_t DG_data::connect_funcs [static, private]

Definition at line 39 of file DG_data.h.

Referenced by DG_data().

Definition at line 37 of file DG_data.h.

Referenced by DG_data(), io_write(), ready_to_quit(), and synch().

int DG_data::dev_id [private]

Definition at line 31 of file DG_data.h.

Referenced by DG_data(), and ready_to_quit().

void* DG_data::dptr [private]

Definition at line 34 of file DG_data.h.

Referenced by DG_data(), and io_write().

int DG_data::dsize [private]

Definition at line 35 of file DG_data.h.

Referenced by DG_data(), and io_write().

bool DG_data::funcs_initialized = false [static, private]

Definition at line 41 of file DG_data.h.

Referenced by DG_data().

resmgr_io_funcs_t DG_data::io_funcs [static, private]

Definition at line 40 of file DG_data.h.

Referenced by DG_data().

const char* DG_data::name [private]

Definition at line 32 of file DG_data.h.

Referenced by DG_data(), and ready_to_quit().

bool DG_data::quitting = false [static, private]

Definition at line 42 of file DG_data.h.

Referenced by io_write(), and ready_to_quit().

int DG_data::stale_count [private]

Definition at line 33 of file DG_data.h.

Referenced by DG_data(), io_write(), and stale().

bool DG_data::synched [private]

Definition at line 36 of file DG_data.h.

Referenced by DG_data(), and io_write().


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