Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
MessageConsumerPort Class Reference

#include <MessageInterface.h>

Inheritance diagram for MessageConsumerPort:
Port_Provides_base_impl PortBase

Classes

class  MemberCallback
 
class  MessageCallback
 

Public Member Functions

 MessageConsumerPort (std::string port_name)
 
virtual ~MessageConsumerPort (void)
 
template<class Class , class MessageStruct >
void registerMessage (const std::string &id, Class *target, void(Class::*func)(const std::string &, const MessageStruct &))
 
template<class Target , class Func >
void registerMessage (Target target, Func func)
 
void connectPort (CORBA::Object_ptr connection, const char *connectionId)
 
void disconnectPort (const char *connectionId)
 
CosEventChannelAdmin::ConsumerAdmin_ptr for_consumers ()
 
CosEventChannelAdmin::SupplierAdmin_ptr for_suppliers ()
 
void destroy ()
 
CosEventChannelAdmin::ProxyPushConsumer_ptr extendConsumers (std::string consumer_id)
 
Consumer_i * removeConsumer (std::string consumer_id)
 
void fireCallback (const std::string &id, const CORBA::Any &data)
 
std::string getRepid () const
 
std::string getDirection () const
 
- Public Member Functions inherited from Port_Provides_base_impl
 Port_Provides_base_impl (std::string port_name)
 
virtual ~Port_Provides_base_impl ()
 
- Public Member Functions inherited from PortBase
 PortBase (const std::string &name)
 
virtual ~PortBase ()
 
virtual void setDescription (const std::string &desc)
 
virtual void startPort ()
 
virtual void stopPort ()
 
virtual void releasePort ()
 
virtual std::string getName ()
 
virtual std::string getDescription ()
 

Protected Types

typedef std::map< std::string, MessageCallback * > CallbackTable
 
typedef std::map< std::string, CosEventComm::PushSupplier_var > SupplierTable
 

Protected Member Functions

void addSupplier (const std::string &connectionId, CosEventComm::PushSupplier_ptr supplier)
 
CosEventComm::PushSupplier_ptr removeSupplier (const std::string &connectionId)
 

Protected Attributes

boost::mutex portInterfaceAccess
 
std::map< std::string, Consumer_i * > consumers
 
std::map< std::string, CosEventChannelAdmin::EventChannel_ptr > _connections
 
SupplierAdmin_i * supplier_admin
 
CallbackTable callbacks_
 
ossie::notification< void(const std::string &, const CORBA::Any &)> generic_callbacks_
 
SupplierTable suppliers_
 
- Protected Attributes inherited from PortBase
std::string name
 
std::string description
 

Member Typedef Documentation

typedef std::map<std::string, MessageCallback*> MessageConsumerPort::CallbackTable
protected
typedef std::map<std::string, CosEventComm::PushSupplier_var> MessageConsumerPort::SupplierTable
protected

Constructor & Destructor Documentation

MessageConsumerPort::MessageConsumerPort ( std::string  port_name)
virtual MessageConsumerPort::~MessageConsumerPort ( void  )
inlinevirtual

Member Function Documentation

void MessageConsumerPort::addSupplier ( const std::string &  connectionId,
CosEventComm::PushSupplier_ptr  supplier 
)
protected
void MessageConsumerPort::connectPort ( CORBA::Object_ptr  connection,
const char *  connectionId 
)
void MessageConsumerPort::destroy ( )
void MessageConsumerPort::disconnectPort ( const char *  connectionId)
CosEventChannelAdmin::ProxyPushConsumer_ptr MessageConsumerPort::extendConsumers ( std::string  consumer_id)
void MessageConsumerPort::fireCallback ( const std::string &  id,
const CORBA::Any &  data 
)
CosEventChannelAdmin::ConsumerAdmin_ptr MessageConsumerPort::for_consumers ( )
CosEventChannelAdmin::SupplierAdmin_ptr MessageConsumerPort::for_suppliers ( )
std::string MessageConsumerPort::getDirection ( ) const
virtual

Reimplemented from Port_Provides_base_impl.

std::string MessageConsumerPort::getRepid ( ) const
virtual

Reimplemented from PortBase.

template<class Class , class MessageStruct >
void MessageConsumerPort::registerMessage ( const std::string &  id,
Class *  target,
void(Class::*)(const std::string &, const MessageStruct &)  func 
)
inline
template<class Target , class Func >
void MessageConsumerPort::registerMessage ( Target  target,
Func  func 
)
inline
Consumer_i* MessageConsumerPort::removeConsumer ( std::string  consumer_id)
CosEventComm::PushSupplier_ptr MessageConsumerPort::removeSupplier ( const std::string &  connectionId)
protected

Member Data Documentation

std::map<std::string, CosEventChannelAdmin::EventChannel_ptr> MessageConsumerPort::_connections
protected
CallbackTable MessageConsumerPort::callbacks_
protected
std::map<std::string, Consumer_i*> MessageConsumerPort::consumers
protected
ossie::notification<void (const std::string&, const CORBA::Any&)> MessageConsumerPort::generic_callbacks_
protected
boost::mutex MessageConsumerPort::portInterfaceAccess
protected
SupplierAdmin_i* MessageConsumerPort::supplier_admin
protected
SupplierTable MessageConsumerPort::suppliers_
protected

The documentation for this class was generated from the following file: