summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Event/EC_Command.cpp
blob: 504abd6af56e403a2b9a813c4435e926a3e418a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// $Id$

#ifndef TAO_EC_COMMAND_CPP
#define TAO_EC_COMMAND_CPP

#include "EC_Command.h"

#if ! defined (__ACE_INLINE__)
#include "EC_Command.i"
#endif /* __ACE_INLINE__ */

ACE_RCSID(Event, EC_Command, "$Id$")

template<class Target, class Object> int
TAO_EC_Connected_Command<Target,Object>::execute (void* arg)
{
  CORBA::Environment *env = &CORBA::default_environment ();
  if (arg != 0)
    env = ACE_static_cast(CORBA::Environment*, arg);

  this->target_->connected_i (this->object_, *env);
  return 0;
}

// ****************************************************************

template<class Target, class Object> int
TAO_EC_Disconnected_Command<Target,Object>::execute (void* arg)
{
  CORBA::Environment *env = &CORBA::default_environment ();
  if (arg != 0)
    env = ACE_static_cast(CORBA::Environment*, arg);

  this->target_->disconnected_i (this->object_, *env);
  return 0;
}

#endif /* TAO_EC_COMMAND_CPP */