#include <DDSHelper.h>
#include <acsddsncDataReaderListener.h>
#include <dds/DCPS/SubscriberImpl.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 ACS_NEW_DDS_SUBSCRIBER | ( | subscriber_p, | ||
idlStruct, | ||||
channelName, | ||||
handlerFunc, | ||||
handlerParam | ||||
) |
{ \ 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.