RTC::PublisherFactory Class Reference

PublisherFactory class. More...

#include <PublisherFactory.h>

List of all members.

Public Member Functions

 PublisherFactory ()
 Constructor.
virtual ~PublisherFactory ()
 Destructor.
PublisherBasecreate (InPortConsumer *consumer, Properties &property)
 Create the Publisher.
void destroy (PublisherBase *publisher)
 Destroy the Publisher.


Detailed Description

PublisherFactory class.

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.


Constructor & Destructor Documentation

RTC::PublisherFactory::PublisherFactory (  )  [inline]

Constructor.

Default constructor

virtual RTC::PublisherFactory::~PublisherFactory (  )  [inline, virtual]

Destructor.

Destructor


Member Function Documentation

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.

Parameters:
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.
Returns:
The generated Publisher's object. Null will be returned if failed to be generated.

void RTC::PublisherFactory::destroy ( PublisherBase publisher  ) 

Destroy the Publisher.

Destroy the specified Publisher's object

Parameters:
publisher The target Publisher's object for the delete


Generated on Wed May 21 05:17:34 2008 for OpenRTM by  doxygen 1.5.3