#include <AnyEvent.h>
Inheritance diagram for TAO_Notify_AnyEvent_No_Copy:


Public Member Functions | |
| TAO_Notify_AnyEvent_No_Copy (const CORBA::Any &event) | |
| Constuctor. | |
| 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 | |
| TAO_Notify_AnyEvent * | unmarshal (TAO_InputCDR &cdr) |
Protected Member Functions | |
| virtual TAO_Notify_Event * | copy () const |
| returns a copy of this event allocated from the heap | |
Protected Attributes | |
| const CORBA::Any * | event_ |
Static Protected Attributes | |
| TAO_Notify_EventType | event_type_ |
| Our event type. | |
Friends | |
| class | TAO_Notify_Builder |
|
|
Constuctor.
Definition at line 21 of file AnyEvent.cpp.
00022 : event_ (&event) 00023 { 00024 } |
|
|
Destructor.
Definition at line 26 of file AnyEvent.cpp.
00027 {
00028 }
|
|
|
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 }
|
|
|
returns a copy of this event allocated from the heap
Implements TAO_Notify_Event. Definition at line 116 of file AnyEvent.cpp. References ACE_CHECK_RETURN, and 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 ACE_CHECK_RETURN (0);
00123 return new_event;
00124 }
|
|
|
Returns true if the filter matches.
Implements TAO_Notify_Event. Definition at line 43 of file AnyEvent.cpp. References ACE_DEBUG, ACE_ENV_ARG_PARAMETER, 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_ ACE_ENV_ARG_PARAMETER);
00050 }
|
|
|
marshal this event into a CDR buffer (for persistence)
Implements TAO_Notify_Event. Definition at line 95 of file AnyEvent.cpp. References 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 }
|
|
|
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event. Definition at line 83 of file AnyEvent.cpp. References ACE_ENV_ARG_PARAMETER.
00084 {
00085 forwarder->forward_any (*this->event_ ACE_ENV_ARG_PARAMETER);
00086 }
|
|
|
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event. Definition at line 63 of file AnyEvent.cpp. References ACE_ENV_ARG_PARAMETER, and TAO_Notify_Event::translate().
00064 {
00065 CosNotification::StructuredEvent notification;
00066
00067 TAO_Notify_Event::translate (*this->event_, notification);
00068
00069 forwarder->forward_structured (notification ACE_ENV_ARG_PARAMETER);
00070 }
|
|
|
Push event to consumer.
Implements TAO_Notify_Event. Definition at line 53 of file AnyEvent.cpp. References ACE_DEBUG, ACE_ENV_ARG_PARAMETER, DEBUG_LEVEL, and LM_DEBUG.
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_ ACE_ENV_ARG_PARAMETER);
00060 }
|
|
|
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event. Definition at line 89 of file AnyEvent.cpp. References ACE_ENV_ARG_PARAMETER.
00090 {
00091 forwarder->forward_any_no_filtering (*this->event_ ACE_ENV_ARG_PARAMETER);
00092 }
|
|
|
Push event to the Event_Forwarder interface.
Implements TAO_Notify_Event. Definition at line 73 of file AnyEvent.cpp. References ACE_ENV_ARG_PARAMETER, and 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 ACE_ENV_ARG_PARAMETER);
00080 }
|
|
|
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 }
|
|
|
unmarshal this event from a CDR buffer (for persistence)
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 }
|
|
|
Definition at line 41 of file AnyEvent.h. |
|
|
Definition at line 89 of file AnyEvent.h. |
|
|
Our event type.
Definition at line 19 of file AnyEvent.cpp. Referenced by type(). |
1.3.6