#include <PublisherFactory.h>
Public Member Functions | |
PublisherFactory () | |
Constructor. | |
virtual | ~PublisherFactory () |
Destructor. | |
PublisherBase * | create (InPortConsumer *consumer, Properties &property) |
Create the Publisher. | |
void | destroy (PublisherBase *publisher) |
Destroy the Publisher. |
This is a factory class to manage for creation and destruction of various Publisher objects. Note: This is temporary implementation. We try to be able to generate any Publisher in the future.
RTC::PublisherFactory::PublisherFactory | ( | ) | [inline] |
Constructor.
Default constructor
virtual RTC::PublisherFactory::~PublisherFactory | ( | ) | [inline, virtual] |
Destructor.
Destructor
PublisherBase* RTC::PublisherFactory::create | ( | InPortConsumer * | consumer, | |
Properties & | property | |||
) |
Create the Publisher.
Create the Publisher's object. The appropriate Publisher implementation object according to the specified argument is generated. The type of generated Publisher needs to be set to the dataport.subscription_type member of the specified Property object. Also, depending on the type, information that controls the behavior of Publisher needs to be set. For more details on these contents, please refer to each Publisher implementation.
consumer | Consumer that is driven the data sending by Publisher | |
property | Property object to be set information for specifying to the generated Publisher and for controlling the drive of Publisher. |
void RTC::PublisherFactory::destroy | ( | PublisherBase * | publisher | ) |
Destroy the Publisher.
Destroy the specified Publisher's object
publisher | The target Publisher's object for the delete |