Classes | Namespaces | Defines

DDSSubscriber.h File Reference

#include <DDSHelper.h>
#include <acsddsncDataReaderListener.h>
#include <dds/DCPS/SubscriberImpl.h>
Include dependency graph for DDSSubscriber.h:

Go to the source code of this file.

Classes

class  ddsnc::DDSSubscriber

Namespaces

namespace  ddsnc

Defines

#define ACS_NEW_DDS_SUBSCRIBER(subscriber_p, idlStruct, channelName, handlerFunc, handlerParam)

Define Documentation

#define ACS_NEW_DDS_SUBSCRIBER (   subscriber_p,
  idlStruct,
  channelName,
  handlerFunc,
  handlerParam 
)
Value:
{ \
        subscriber_p= new ddsnc::DDSSubscriber(channelName); \
        subscriber_p->initialize<idlStruct, idlStruct##TypeSupport_var, idlStruct##TypeSupportImpl>(); \
        subscriber_p->addSubscription<idlStruct##DataReader_var, idlStruct##DataReader, idlStruct>(handlerFunc, handlerParam); \
}

Create a new DDS Subscriber in an easy way.

Create a new DDSSubscribe object, then initialize the subscribe and finally execute the addSubscription function.

See also:
DDSSubscriber()
initialize()
addSubscription()