Public Member Functions | Protected Attributes

TAO_Notify_Method_Request_Event Class Reference

A base class for all Method Requests that are associated with events. More...

#include <Method_Request_Event.h>

Inheritance diagram for TAO_Notify_Method_Request_Event:
Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Method_Request_Event:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_Notify_Method_Request_Event (const TAO_Notify_Event *)
 Construct from event.
 TAO_Notify_Method_Request_Event (const TAO_Notify::Delivery_Request_Ptr &delivery_request)
 Construct from a delivery request.
 TAO_Notify_Method_Request_Event (const TAO_Notify_Method_Request_Event &rhs, const TAO_Notify_Event *event)
virtual ~TAO_Notify_Method_Request_Event ()
 Destructor.
const TAO_Notify_Eventevent () const
void complete ()
unsigned long sequence ()
bool should_retry ()

Protected Attributes

const TAO_Notify_Eventevent_
 The Event.
TAO_Notify::Delivery_Request_Ptr delivery_request_
 Pointer to the routing slip's delivery request (if any).

Detailed Description

A base class for all Method Requests that are associated with events.

Definition at line 36 of file Method_Request_Event.h.


Constructor & Destructor Documentation

TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event ( const TAO_Notify_Event event  ) 

Construct from event.

Definition at line 10 of file Method_Request_Event.cpp.

  : event_ (event)
{
}

TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event ( const TAO_Notify::Delivery_Request_Ptr delivery_request  ) 

Construct from a delivery request.

Definition at line 16 of file Method_Request_Event.cpp.

  : event_ (request->event ().get ())
  , delivery_request_ (request)
{
}

TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event ( const TAO_Notify_Method_Request_Event rhs,
const TAO_Notify_Event event 
)

Construct from another Method Request Event is passed separately because it may be a copy of the one in request.

Definition at line 23 of file Method_Request_Event.cpp.

TAO_Notify_Method_Request_Event::~TAO_Notify_Method_Request_Event (  )  [virtual]

Destructor.

Definition at line 31 of file Method_Request_Event.cpp.

{
}


Member Function Documentation

void TAO_Notify_Method_Request_Event::complete (  ) 

Definition at line 36 of file Method_Request_Event.cpp.

{
  if (this->delivery_request_.get () != 0)
  {
    this->delivery_request_->complete ();
  }
}

const TAO_Notify_Event * TAO_Notify_Method_Request_Event::event (  )  const

Definition at line 97 of file Method_Request_Event.cpp.

{
  return this->event_;
}

unsigned long TAO_Notify_Method_Request_Event::sequence (  ) 

Definition at line 46 of file Method_Request_Event.cpp.

{
  if (this->delivery_request_.get () != 0)
  {
    return this->delivery_request_->sequence ();
  }
  return 0;
}

bool TAO_Notify_Method_Request_Event::should_retry (  ) 

Definition at line 56 of file Method_Request_Event.cpp.

{
  if (this->delivery_request_.get () != 0)
  {
    return this->delivery_request_->should_retry ();
  }
  return false;
}


Member Data Documentation

Pointer to the routing slip's delivery request (if any).

Definition at line 66 of file Method_Request_Event.h.

The Event.

Definition at line 63 of file Method_Request_Event.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines