Dxc::DxcCallback Class Reference

The abstract definition of the DcxData callback class. More...

#include </home/user/DXC_svn/trunk/Src/APIs/cpp/DxcCallback.hpp>

List of all members.

Public Member Functions

virtual void processData (const DxcData *data)=0
 Method to be called when data is received.

Detailed Description

The abstract definition of the DcxData callback class.

This abstract class forms the base class for the DXC data callback. Users must extend this abstract class to give their own callback handler, and register the class with a DxcConnector via a ConnectorFactory. Only one callback can be registered per connector, but the same callback can be registered with different connectors. When new data is received by a connector, the handler function will be called in the context of a new thread. The DxcConnector stores a reference to the instance of the callback class; users are responsible for ensuring that the instance is not destroyed before the connector stops receiving data.


Member Function Documentation

virtual void Dxc::DxcCallback::processData ( const DxcData data  )  [pure virtual]

Method to be called when data is received.

Implement this method to receive DxcData messages. Each message must be downcast into its specific type upon arrival to access methods belonging to instances of DxcData subclasses.

Parameters:
data - the message to be processed by the callback function

The documentation for this class was generated from the following files:

Generated on 22 Feb 2013 for dxcApi by  doxygen 1.6.1