TAO_ESF_Shutdown_Command< Target > Class Template Reference

Implements a Command object that invokes the shutdown_i() method on the target, passing an argument of type Object. More...

#include <ESF_Delayed_Command.h>

Inheritance diagram for TAO_ESF_Shutdown_Command< Target >:

Inheritance graph
[legend]
Collaboration diagram for TAO_ESF_Shutdown_Command< Target >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_ESF_Shutdown_Command (Target *target)
 constructor...

virtual int execute (void *arg)

Private Attributes

Target * target_
 The target.


Detailed Description

template<class Target>
class TAO_ESF_Shutdown_Command< Target >

Implements a Command object that invokes the shutdown_i() method on the target, passing an argument of type Object.

Memory Management

It does not assume ownership of Object nor the Target arguments. Usually allocated from the heap or an allocator; but it is not self-managed.

Locking

No provisions for locking, access must be serialized externally.

Definition at line 156 of file ESF_Delayed_Command.h.


Constructor & Destructor Documentation

template<class Target>
TAO_ESF_Shutdown_Command< Target >::TAO_ESF_Shutdown_Command Target *  target  ) 
 

constructor...

Definition at line 42 of file ESF_Delayed_Command.i.

00043   : target_ (target)
00044 {
00045 }


Member Function Documentation

template<class Target>
int TAO_ESF_Shutdown_Command< Target >::execute void *  arg  )  [virtual]
 

The callback method, if the argument is not nil it is interpreted as a CORBA::Environment.

Implements ACE_Command_Base.

Definition at line 79 of file ESF_Delayed_Command.cpp.

References ACE_DECLARE_NEW_CORBA_ENV, ACE_ENV_EMIT_CODE, ACE_ENV_SINGLE_ARG_PARAMETER, and ACE_TRY_ENV.

00080 {
00081   if (arg != 0)
00082     {
00083       ACE_ENV_EMIT_CODE (CORBA::Environment &ACE_TRY_ENV =
00084                              *static_cast<CORBA::Environment*> (arg));
00085       this->target_->shutdown_i (ACE_ENV_SINGLE_ARG_PARAMETER);
00086     }
00087   else
00088     {
00089       ACE_ENV_EMIT_CODE (ACE_DECLARE_NEW_CORBA_ENV);
00090       this->target_->shutdown_i (ACE_ENV_SINGLE_ARG_PARAMETER);
00091     }
00092   return 0;
00093 }


Member Data Documentation

template<class Target>
Target* TAO_ESF_Shutdown_Command< Target >::target_ [private]
 

The target.

Definition at line 168 of file ESF_Delayed_Command.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:09:03 2006 for TAO_ESF by doxygen 1.3.6