ddsnc::DDSHelper − |
#include <DDSHelper.h> Inherited by ddsnc::DDSPublisher, and ddsnc::DDSSubscriber. |
Public Member Functions |
void disconnect () |
CORBA::String_var getChannelName () |
Static Public Member Functions |
static void cleanUp () |
Public Attributes |
DDS::TopicQos topicQos |
Protected Member Functions |
DDSHelper (CORBA::String_var channelName) |
DDSHelper (const char *channelName, const char *DCPSInfoRepoLoc) |
virtual ~DDSHelper () |
int createParticipant () |
void initializeTopic (const char *topicName, CORBA::String_var typeName) |
void initializeTopic (CORBA::String_var typeName) |
void setPartitionName (const char *partitionName) |
Protected Attributes |
DDS::DomainParticipantFactory_ptr dpf |
DDS::DomainParticipant_var participant |
DDS::Topic_var topic |
char * partitionName |
char * topicName |
bool initialized |
Private Member Functions |
void setTopicName (const char *topicName) |
void init (const char *channelName, const char *DCPSInfoRepoLoc) |
Base class for ACSNCDDS, this class contains all the common functionality offered by DDS publishers and DDS subscribers. If it wanted to use this class, it must be inherited. Author: |
Jorge Avarias <javarias[at]inf.utfsm.cl> |
See also: |
DDSPublisher DDSSubscriber |
ddsnc::DDSHelper::DDSHelper (CORBA::String_var channelName) [protected] Constructor for DDSHelper, this constructor will be set the location of DCPSInfoRepo to corbaloc:iiop:127.0.0.1:3999/DCPSInfoRepo |
Parameters: |
channelName the name of the channel that will be mapped to a partition. |
ddsnc::DDSHelper::DDSHelper (const char * channelName, const char * DCPSInfoRepoLoc) [protected] Constructor for DDSHelper |
Parameters: |
channelName the name of the channel that will be
mapped to a partition. |
virtual ddsnc::DDSHelper::~DDSHelper () [protected, virtual] Destructor for DDSHelper before free the varibales it call to disconnect method, if disconnect method was called, the destructor only free the variables. |
See also: |
disconnect() |
static void ddsnc::DDSHelper::cleanUp () [static] |
int ddsnc::DDSHelper::createParticipant () [protected] |
Referenced by ddsnc::DDSSubscriber::initialize(). |
void ddsnc::DDSHelper::disconnect () Disconnect method will destroy all the DDS entities initilizated, it will release the trasport factory, shutdown the DDS participant service and set the status of the class as not initilizated. This method should be used when you want to destroy a Publisher or Subscriber object that inherit this class. |
See also: |
~DDSHelper() |
CORBA::String_var ddsnc::DDSHelper::getChannelName () |
void ddsnc::DDSHelper::init (const char * channelName, const char * DCPSInfoRepoLoc) [private] |
void ddsnc::DDSHelper::initializeTopic (CORBA::String_var typeName) [protected] |
void ddsnc::DDSHelper::initializeTopic (const char * topicName, CORBA::String_var typeName) [protected] Initialize the topic and register the type supported by the topic, this method must be called after creation of the participant, initialization of the transport, creation of the Publisher or Subscriber and initialization of the type support |
Parameters: |
topicName the topicName |
Referenced by ddsnc::DDSSubscriber::initialize(). |
void ddsnc::DDSHelper::setPartitionName (const char * partitionName) [protected] |
void ddsnc::DDSHelper::setTopicName (const char * topicName) [private] |
DDS::DomainParticipantFactory_ptr ddsnc::DDSHelper::dpf [protected] |
bool ddsnc::DDSHelper::initialized [protected] a flag that shows the initialization status of the class |
DDS::DomainParticipant_var ddsnc::DDSHelper::participant [protected] |
Referenced by ddsnc::DDSSubscriber::initialize(). |
char* ddsnc::DDSHelper::partitionName [protected] |
Referenced by ddsnc::DDSSubscriber::initialize(). |
DDS::Topic_var ddsnc::DDSHelper::topic [protected] |
Referenced by ddsnc::DDSSubscriber::initialize(). |
char* ddsnc::DDSHelper::topicName [protected] |
DDS::TopicQos ddsnc::DDSHelper::topicQos |
Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code. |