📄 auto_disconnect.h
字号:
/**
* @file Auto_Disconnect.h
*
* Auto_Disconnect.h,v 1.4 2003/03/28 11:35:27 smcqueen Exp
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
#ifndef TAO_PERF_RTEC_AUTO_DISCONNECT_H
#define TAO_PERF_RTEC_AUTO_DISCONNECT_H
#include "Auto_Functor.h"
#include "tao/corba.h"
/**
* @class Disconnect
*
* @brief Helper functor to call the disconnect() method of a class.
*/
template<class Client>
class Disconnect
{
public:
void operator() (Client *client ACE_ENV_ARG_DECL);
};
/**
* @class Auto_Disconnect
*
* @brief Automatically invoke the disconnect() operation on some
* RTEC client.
*/
template<class Client>
class Auto_Disconnect : public Auto_Functor<Client,Disconnect<Client> >
{
public:
/// Constructor
/**
* @param client The client
*/
ACE_EXPLICIT Auto_Disconnect (Client *s = 0);
/// Assignment operator
Auto_Disconnect<Client>& operator= (Client *client);
};
#if defined(__ACE_INLINE__)
#include "Auto_Disconnect.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "Auto_Disconnect.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#endif /* TAO_PERF_RTEC_AUTO_DISCONNECT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -