#include <acsncSimpleConsumer.h>
Inheritance diagram for nc::SimpleConsumer< T >:
Public Types | |
typedef void(* | eventHandlerFunction )(T eventData, void *handlerParam) |
Public Member Functions | |
SimpleConsumer (const char *channelName) | |
template<class J> void | addSubscription (eventHandlerFunction templateFunction, void *handlerParam=0) |
virtual void | push_structured_event (const CosNotification::StructuredEvent ¬ification) |
Protected Member Functions | |
virtual | ~SimpleConsumer () |
Protected Attributes | |
eventHandlerFunction | templateFunction_mp |
void * | handlerParam_mp |
Private Member Functions | |
void | operator= (const SimpleConsumer &) |
SimpleConsumer (const SimpleConsumer &) | |
void | addSubscription (const char *type_name, eventHandlerFunction templateFunction, void *handlerParam=0) |
To begin consuming data, simply invoke the consumerReady method. After that, the eventHandlerFunction will be invoked asynchronously each time an event is received.
TODO:
|
Pointer to an event handler function.
|
|
Constructor to be used within components.
|
|
Destructor is protected. |
|
ALMA C++ coding standards state copy constructors should be disabled. |
|
A special version of the addSubscription method. Not only subscribes to an event_type, but it also saves a function pointer and an extra paremter to the function to be utilized when an event of type_name is received. Currently the implementation only allows this method to be invoked once (and that is done from the ACSNC_NEW_SIMPLE_CONSUMER macro).
|
|
A special version of the addSubscription method. Not only subscribes to an event_type, but it also saves a function pointer and an extra paremter to the function to be utilized when an event of type_name is received. Currently the implementation only allows this method to be invoked once (and that is done from the ACSNC_NEW_SIMPLE_CONSUMER macro). The template paramter is the type_name of the event to be received.
|
|
ALMA C++ coding standards state assignment operators should be disabled. |
|
This is the abstract method inherited Consumer which must be overridden. In the SimpleConsumer class, it just invokes some function registered via the addSubscription method. In doing this, one does not have to override SimpleConsumer. Note that this method must not be invoked by your code!
Implements nc::Consumer.
|
|
This is a single parameter that will be passed to the handler function in addition to the ICD <t> event. |
|
This function does something with T events. |