code::DataProvider Class Reference

Inheritance diagram for code::DataProvider:

code::DataDirectoryManager code::DataStreamManager List of all members.

Detailed Description

The DataProvider will look for new data in a directory or a LB and then farm the data in the files in chunks off to any attached DataHandler objects that have been added via the addDataHandler method.

Author:
Lakshman
Version:
Id
code_DataProvider.h,v 1.4 2009/06/02 20:17:39 lakshman Exp


Public Member Functions

virtual ~DataProvider ()
virtual int readData ()=0
 Reads data from the LDM or LB returns number of bytes read as a result of this call.
virtual void addDataHandler (SmartPtr< DataHandler > h)
 Attach a handler for the data that is read.

Protected Attributes

std::vector< SmartPtr< DataHandler > > dataHandlers

Classes

class  DataHandler
 Implement a subclass of DataHandler to handle the data. More...


Constructor & Destructor Documentation

virtual code::DataProvider::~DataProvider (  )  [inline, virtual]


Member Function Documentation

virtual void code::DataProvider::addDataHandler ( SmartPtr< DataHandler h  )  [inline, virtual]

Attach a handler for the data that is read.

virtual int code::DataProvider::readData (  )  [pure virtual]

Reads data from the LDM or LB returns number of bytes read as a result of this call.

Typically, you will keep calling readData() indefinitely in real-time, and until it returns zero for archive.

Implemented in code::DataDirectoryManager, and code::DataStreamManager.


Member Data Documentation

std::vector< SmartPtr<DataHandler> > code::DataProvider::dataHandlers [protected]


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7