blob: 90ae3a9b1ea889ed08b77697ed25fba2fc08d862 (
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
|
/**
* @file EC_Channel_Destroyer.h
*
* @author Marina Spivak <marina@atdesk.com>
*
* $Id$
*/
#ifndef EC_CHANNEL_DESTROYER__H_
#define EC_CHANNEL_DESTROYER__H_
#include /**/ "event_serv_export.h"
#include "EC_Event_Channel_Base.h"
#include "ace/Auto_Functor.h"
/**
* @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;
#endif // EC_CHANNEL_DESTROYER__H_
|