Classes | Namespaces | Defines

acsncSimpleConsumer.h File Reference

#include "acsncConsumer.h"
#include <acsutilAnyAide.h>
#include "acsncErrType.h"
#include "acsncSimpleConsumer.i"
Include dependency graph for acsncSimpleConsumer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nc::SimpleConsumer< T >

Namespaces

namespace  nc

Defines

#define ACS_NEW_SIMPLE_CONSUMER(simpConsumer_p, idlStruct, channelName, handlerFunction, handlerParam)

Define Documentation

#define ACS_NEW_SIMPLE_CONSUMER (   simpConsumer_p,
  idlStruct,
  channelName,
  handlerFunction,
  handlerParam 
)
Value:
{ \
  simpConsumer_p = new nc::SimpleConsumer<idlStruct>(channelName); \
  simpConsumer_p->addSubscription<idlStruct>(handlerFunction, handlerParam);\
}

MACRO must be used instead of manually allocating memory for SimpleConsumer pointers. This is done so that consumers/suppliers across the different programming languages do not confuse the type_name field of CORBA structured events.

Parameters:
simpleConsumer_p A pointer to an unallocated SimpleConsumer.
idlStruct The IDL struct that will be subscribed to (FRIDGE::temperatureDataBlockEvent for example).
channelName Name of the channel events will be published too.
handlerFunction A function pointer to a function capable of processing idlStruct events.
handlerParam A single void parameter that will be passed to the handlerFunction in addition to the ICD event.