Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

acsncSimpleConsumer.h File Reference

#include "acsncConsumer.h"
#include <acsutilAnyAide.h>
#include "acsncErrType.h"
#include "acsncSimpleConsumer.i"

Include dependency graph for acsncSimpleConsumer.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  nc

Classes

class  nc::SimpleConsumer< T >

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.


Generated on Thu Apr 30 02:32:09 2009 for ACS C++ API by doxygen 1.3.8