blob: 4b18ad808fd9d5405efe79a3bb654833ad926105 (
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
39
40
41
42
43
44
45
46
|
// -*- C++ -*-
/**
* @file EC_Channel_Destroyer.h
*
* @author Marina Spivak <marina@atdesk.com>
*
* $Id$
*/
#ifndef EC_CHANNEL_DESTROYER__H_
#define EC_CHANNEL_DESTROYER__H_
#include /**/ "orbsvcs/Event/event_serv_export.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
#include "ace/Auto_Functor.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @struct TAO_EC_Channel_Destroyer_Functor
*
* @brief Implements a functor for the TAO_EC_Channel_Destroyer class.
*/
struct TAO_RTEvent_Serv_Export TAO_EC_Channel_Destroyer_Functor
{
typedef TAO_EC_Event_Channel_Base * argument;
/// Destroy @c event_channel
void operator() (TAO_EC_Event_Channel_Base * event_channel)
ACE_THROW_SPEC (());
};
/**
* @class TAO_EC_Channel_Destroyer
*
* @brief Helper class to destroy event channel.
*
*/
typedef ACE_Utils::Auto_Functor<
TAO_EC_Event_Channel_Base,
TAO_EC_Channel_Destroyer_Functor>
TAO_EC_Channel_Destroyer;
TAO_END_VERSIONED_NAMESPACE_DECL
#endif // EC_CHANNEL_DESTROYER__H_
|