TAO_ESF_Connected_Command< Target, Object > Class Template Reference

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

#include <ESF_Delayed_Command.h>

Inheritance diagram for TAO_ESF_Connected_Command< Target, Object >:

Inheritance graph
[legend]
Collaboration diagram for TAO_ESF_Connected_Command< Target, Object >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_ESF_Connected_Command (Target *target, Object *object)
 constructor...

virtual int execute (void *arg)

Private Attributes

Target * target_
 The target.

Objectobject_
 The argument.


Detailed Description

template<class Target, class Object>
class TAO_ESF_Connected_Command< Target, Object >

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

Memory Managment

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 41 of file ESF_Delayed_Command.h.


Constructor & Destructor Documentation

template<class Target, class Object>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_ESF_Connected_Command< Target, Object >::TAO_ESF_Connected_Command Target *  target,
Object object
 

constructor...

Definition at line 9 of file ESF_Delayed_Command.i.

00011   : target_ (target),
00012     object_ (object)
00013 {
00014 }


Member Function Documentation

template<class Target, class Object>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL int TAO_ESF_Connected_Command< Target, Object >::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 15 of file ESF_Delayed_Command.cpp.

References ACE_DECLARE_NEW_CORBA_ENV, ACE_ENV_ARG_PARAMETER, ACE_ENV_EMIT_CODE, and ACE_TRY_ENV.

00016 {
00017   if (arg != 0)
00018     {
00019       ACE_ENV_EMIT_CODE (CORBA::Environment &ACE_TRY_ENV =
00020                             *static_cast<CORBA::Environment*> (arg));
00021       this->target_->connected_i (this->object_
00022                                   ACE_ENV_ARG_PARAMETER);
00023     }
00024   else
00025     {
00026       ACE_ENV_EMIT_CODE (ACE_DECLARE_NEW_CORBA_ENV);
00027       this->target_->connected_i (this->object_
00028                                   ACE_ENV_ARG_PARAMETER);
00029     }
00030 
00031   return 0;
00032 }


Member Data Documentation

template<class Target, class Object>
Object* TAO_ESF_Connected_Command< Target, Object >::object_ [private]
 

The argument.

Definition at line 57 of file ESF_Delayed_Command.h.

template<class Target, class Object>
Target* TAO_ESF_Connected_Command< Target, Object >::target_ [private]
 

The target.

Definition at line 54 of file ESF_Delayed_Command.h.


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