Method_Request_Event.cpp

Go to the documentation of this file.
00001 // Method_Request_Event.cpp,v 1.13 2006/03/14 06:14:34 jtc Exp
00002 
00003 #include "orbsvcs/Notify/Method_Request_Event.h"
00004 #include "orbsvcs/Notify/Delivery_Request.h"
00005 
00006 ACE_RCSID (Notify, TAO_Notify_Method_Request_Event_Queueable, "Method_Request_Event.cpp,v 1.13 2006/03/14 06:14:34 jtc Exp")
00007 
00008 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
00011       const TAO_Notify_Event * event)
00012   : event_ (event)
00013 {
00014 }
00015 
00016 TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
00017       const TAO_Notify::Delivery_Request_Ptr & request)
00018   : event_ (request->event ().get ())
00019   , delivery_request_ (request)
00020 {
00021 }
00022 
00023 TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
00024       const TAO_Notify_Method_Request_Event & rhs,
00025       const TAO_Notify_Event * event)
00026   : event_ (event)
00027   , delivery_request_ (rhs.delivery_request_)
00028 {
00029 }
00030 
00031 TAO_Notify_Method_Request_Event::~TAO_Notify_Method_Request_Event()
00032 {
00033 }
00034 
00035 void
00036 TAO_Notify_Method_Request_Event::complete ()
00037 {
00038   if (this->delivery_request_.get () != 0)
00039   {
00040     this->delivery_request_->complete ();
00041   }
00042 }
00043 
00044 
00045 unsigned long
00046 TAO_Notify_Method_Request_Event::sequence ()
00047 {
00048   if (this->delivery_request_.get () != 0)
00049   {
00050     return this->delivery_request_->sequence ();
00051   }
00052   return 0;
00053 }
00054 
00055 bool
00056 TAO_Notify_Method_Request_Event::should_retry ()
00057 {
00058   if (this->delivery_request_.get () != 0)
00059   {
00060     return this->delivery_request_->should_retry ();
00061   }
00062   return false;
00063 }
00064 
00065 /**********************************************************/
00066 
00067 
00068 TAO_Notify_Method_Request_Event_Queueable::TAO_Notify_Method_Request_Event_Queueable (
00069       const TAO_Notify_Method_Request_Event & prev_request,
00070       const TAO_Notify_Event::Ptr& event)
00071   : TAO_Notify_Method_Request_Queueable (event.get ())
00072   , TAO_Notify_Method_Request_Event (prev_request, event.get ())
00073   , event_var_ (event)
00074 {
00075 }
00076 
00077 TAO_Notify_Method_Request_Event_Queueable::TAO_Notify_Method_Request_Event_Queueable (
00078     TAO_Notify::Delivery_Request_Ptr & request)
00079   : TAO_Notify_Method_Request_Queueable (request->event ().get ())
00080   , TAO_Notify_Method_Request_Event (request, request->event ().get ())
00081   , event_var_ (request->event ())
00082 {
00083 }
00084 
00085 TAO_Notify_Method_Request_Event_Queueable::~TAO_Notify_Method_Request_Event_Queueable ()
00086 {
00087 }
00088 
00089 int
00090 TAO_Notify_Method_Request_Event_Queueable::execute (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
00091 {
00092   ACE_ASSERT (false);
00093   return -1;
00094 }
00095 
00096 const TAO_Notify_Event *
00097 TAO_Notify_Method_Request_Event::event() const
00098 {
00099   return this->event_;
00100 }
00101 
00102 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:24:12 2006 for TAO_CosNotification by doxygen 1.3.6