#include <AnyEvent.h>
Inheritance diagram for TAO_Notify_AnyEvent_No_Copy:
Public Member Functions | |
TAO_Notify_AnyEvent_No_Copy (const CORBA::Any &event) | |
Constructor. | |
virtual | ~TAO_Notify_AnyEvent_No_Copy () |
Destructor. | |
virtual const TAO_Notify_EventType & | type (void) const |
Get the event type. | |
CORBA::Boolean | do_match (CosNotifyFilter::Filter_ptr filter) const |
Returns true if the filter matches. | |
virtual void | convert (CosNotification::StructuredEvent ¬ification) const |
Convert to CosNotification::Structured type. | |
virtual void | push (TAO_Notify_Consumer *consumer) const |
Push event to consumer. | |
virtual void | push (Event_Forwarder::StructuredProxyPushSupplier_ptr forwarder) const |
Push event to the Event_Forwarder interface. | |
virtual void | push_no_filtering (Event_Forwarder::StructuredProxyPushSupplier_ptr forwarder) const |
Push event to the Event_Forwarder interface. | |
virtual void | push (Event_Forwarder::ProxyPushSupplier_ptr forwarder) const |
Push event to the Event_Forwarder interface. | |
virtual void | push_no_filtering (Event_Forwarder::ProxyPushSupplier_ptr forwarder) const |
Push event to the Event_Forwarder interface. | |
virtual void | marshal (TAO_OutputCDR &cdr) const |
marshal this event into a CDR buffer (for persistence) | |
Static Public Member Functions | |
static TAO_Notify_AnyEvent * | unmarshal (TAO_InputCDR &cdr) |
Protected Member Functions | |
virtual TAO_Notify_Event * | copy (void) const |
returns a copy of this event allocated from the heap | |
Protected Attributes | |
const CORBA::Any * | event_ |
Static Protected Attributes | |
static TAO_Notify_EventType | event_type_ |
Our event type. | |
Friends | |
class | TAO_Notify_Builder |
Definition at line 39 of file AnyEvent.h.
TAO_Notify_AnyEvent_No_Copy::TAO_Notify_AnyEvent_No_Copy | ( | const CORBA::Any & | event | ) |
TAO_Notify_AnyEvent_No_Copy::~TAO_Notify_AnyEvent_No_Copy | ( | ) | [virtual] |
void TAO_Notify_AnyEvent_No_Copy::convert | ( | CosNotification::StructuredEvent & | notification | ) | const [virtual] |
Convert to CosNotification::Structured type.
Implements TAO_Notify_Event.
Definition at line 37 of file AnyEvent.cpp.
References TAO_Notify_Event::translate().
00038 { 00039 TAO_Notify_Event::translate (*this->event_, notification); 00040 }
TAO_Notify_Event * TAO_Notify_AnyEvent_No_Copy::copy | ( | void | ) | const [protected, virtual] |
returns a copy of this event allocated from the heap
Implements TAO_Notify_Event.
Definition at line 116 of file AnyEvent.cpp.
References ACE_NEW_THROW_EX.
00117 { 00118 TAO_Notify_Event * new_event; 00119 ACE_NEW_THROW_EX (new_event, 00120 TAO_Notify_AnyEvent (*this->event_), 00121 CORBA::NO_MEMORY ()); 00122 return new_event; 00123 }
CORBA::Boolean TAO_Notify_AnyEvent_No_Copy::do_match | ( | CosNotifyFilter::Filter_ptr | filter | ) | const [virtual] |
Returns true if the filter matches.
Implements TAO_Notify_Event.
Definition at line 43 of file AnyEvent.cpp.
References ACE_DEBUG, DEBUG_LEVEL, and LM_DEBUG.
00044 { 00045 if (DEBUG_LEVEL > 0) 00046 ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - " 00047 "TAO_Notify_AnyEvent::do_match ()\n")); 00048 00049 return filter->match(*this->event_); 00050 }
void TAO_Notify_AnyEvent_No_Copy::marshal | ( | TAO_OutputCDR & | cdr | ) | const [virtual] |
marshal this event into a CDR buffer (for persistence)
Implements TAO_Notify_Event.
Definition at line 95 of file AnyEvent.cpp.
References event_, TAO_Notify_Event::MARSHAL_ANY, and ACE_OutputCDR::write_octet().
00096 { 00097 const ACE_CDR::Octet ANY_CODE = MARSHAL_ANY; 00098 cdr.write_octet (ANY_CODE); 00099 cdr << (*this->event_); 00100 }
void TAO_Notify_AnyEvent_No_Copy::push | ( | Event_Forwarder::ProxyPushSupplier_ptr | forwarder | ) | const [virtual] |
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event.
Definition at line 83 of file AnyEvent.cpp.
void TAO_Notify_AnyEvent_No_Copy::push | ( | Event_Forwarder::StructuredProxyPushSupplier_ptr | forwarder | ) | const [virtual] |
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event.
Definition at line 63 of file AnyEvent.cpp.
References TAO_Notify_Event::translate().
00064 { 00065 CosNotification::StructuredEvent notification; 00066 00067 TAO_Notify_Event::translate (*this->event_, notification); 00068 00069 forwarder->forward_structured (notification); 00070 }
void TAO_Notify_AnyEvent_No_Copy::push | ( | TAO_Notify_Consumer * | consumer | ) | const [virtual] |
Push event to consumer.
Implements TAO_Notify_Event.
Definition at line 53 of file AnyEvent.cpp.
References ACE_DEBUG, DEBUG_LEVEL, LM_DEBUG, and TAO_Notify_Consumer::push().
00054 { 00055 if (DEBUG_LEVEL > 0) 00056 ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - " 00057 "TAO_Notify_AnyEvent::push \n")); 00058 00059 consumer->push (*this->event_); 00060 }
void TAO_Notify_AnyEvent_No_Copy::push_no_filtering | ( | Event_Forwarder::ProxyPushSupplier_ptr | forwarder | ) | const [virtual] |
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event.
Definition at line 89 of file AnyEvent.cpp.
void TAO_Notify_AnyEvent_No_Copy::push_no_filtering | ( | Event_Forwarder::StructuredProxyPushSupplier_ptr | forwarder | ) | const [virtual] |
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event.
Definition at line 73 of file AnyEvent.cpp.
References TAO_Notify_Event::translate().
00074 { 00075 CosNotification::StructuredEvent notification; 00076 00077 TAO_Notify_Event::translate (*this->event_, notification); 00078 00079 forwarder->forward_structured_no_filtering (notification); 00080 }
const TAO_Notify_EventType & TAO_Notify_AnyEvent_No_Copy::type | ( | void | ) | const [virtual] |
Get the event type.
Implements TAO_Notify_Event.
Definition at line 31 of file AnyEvent.cpp.
References event_type_.
00032 { 00033 return this->event_type_; 00034 }
TAO_Notify_AnyEvent * TAO_Notify_AnyEvent_No_Copy::unmarshal | ( | TAO_InputCDR & | cdr | ) | [static] |
unmarshal this event from a CDR buffer (for persistence)
code | a code indicating what type of event to create. | |
cdr | a CDR stream containing the marshalled data for the event. |
Reimplemented from TAO_Notify_Event.
Definition at line 104 of file AnyEvent.cpp.
Referenced by TAO_Notify_Event::unmarshal().
00105 { 00106 TAO_Notify_AnyEvent * event = 0; 00107 CORBA::Any body; 00108 if (cdr >> body) 00109 { 00110 event = new TAO_Notify_AnyEvent (body); 00111 } 00112 return event; 00113 }
friend class TAO_Notify_Builder [friend] |
Definition at line 41 of file AnyEvent.h.
const CORBA::Any* TAO_Notify_AnyEvent_No_Copy::event_ [protected] |
Definition at line 89 of file AnyEvent.h.
Referenced by marshal(), and TAO_Notify_AnyEvent::TAO_Notify_AnyEvent().
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_EventType TAO_Notify_AnyEvent_No_Copy::event_type_ [static, protected] |
Our event type.
Definition at line 92 of file AnyEvent.h.
Referenced by TAO_Notify_Builder::TAO_Notify_Builder(), and type().