div class="twikiTopBar">

Chair for Computer Aided Medical Procedures & Augmented Reality
Lehrstuhl für Informatikanwendungen in der Medizin & Augmented Reality

SecondSender Class Reference
[Example for the Template Service]

The class handling abilities of type SecondSender. More...

Inheritance diagram for SecondSender:

Inheritance graph
Collaboration diagram for SecondSender:

Collaboration graph

Public Member Functions

 SecondSender (DWARF::AbilityDescription_ptr abilityDescr, ExampleService *svc)
 Initialize name.
virtual ~SecondSender ()
 Does nothing.
void setConsumer (CosNotifyComm::StructuredPushConsumer_ptr consumer)
 called by service mgr to set the event channel
void disconnect_structured_push_supplier ()
 inherited from CosNotifyComm::StructuredPushConsumer
bool sendOutEvent (CosNotification::StructuredEvent event)
 a method to send arbitrary evenst over this channel

Protected Attributes

std::string m_name
 The object's name, should be the same as the ability name.
DWARF::AbilityDescription_ptr p_abilityDescr
 The ability description of this object, attributes can be found here.
 A pointer for callbacks to the service object.
CosNotifyComm::StructuredPushConsumer_var p_notifyConsumer
 Event channel.
volatile bool m_hasConsumer
 Flag showing if we have a consumer.

Detailed Description

The class handling abilities of type SecondSender.

This class is derived from the DWARF SvcProtPushSupplier interface

Martin Wagner <wagnerm@in.tum.de>

Example User <example@user.com>

Definition at line 119 of file src/templates/cppservice/example/NAClasses.h.

Member Function Documentation

bool SecondSender::sendOutEvent CosNotification::StructuredEvent  event  ) 

a method to send arbitrary evenst over this channel

Whether the event could be sent

Definition at line 139 of file NAClasses.cpp.

SecondSender Class Reference | generated on Sun Apr 29 02:01:10 2007 by Doxygen 1.4.1 for DWARF