⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 implicit_deactivator.h

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 H
字号:
/**
 * @file Implicit_Deactivator.h
 *
 * Implicit_Deactivator.h,v 1.1 2002/03/09 00:13:42 coryan Exp
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */
#ifndef TAO_PERF_RTEC_IMPLICIT_DEACTIVATOR_H
#define TAO_PERF_RTEC_IMPLICIT_DEACTIVATOR_H

#include "rtec_perf_export.h"
#include "tao/PortableServer/PortableServer.h"

/**
 * @class Implicit_Deactivator
 *
 * @brief Automatically deactivate an implicitly activated object.
 */
class TAO_RTEC_Perf_Export Implicit_Deactivator
{
public:
  /// Constructor
  /**
   * @param client The client
   */
  ACE_EXPLICIT Implicit_Deactivator (PortableServer::Servant servant = 0
                                     ACE_ENV_ARG_DECL_WITH_DEFAULTS);
  Implicit_Deactivator (Implicit_Deactivator& rhs);
  Implicit_Deactivator& operator= (Implicit_Deactivator& rhs);

  /// Destructor
  ~Implicit_Deactivator (void);

  /// Assignment operator
  Implicit_Deactivator& operator= (PortableServer::Servant servant);

  /// Release the servant, i.e. the destructor does not deactivate anything
  void release (void);

private:
  /// The POA
  PortableServer::POA_var poa_;

  /// The object id
  PortableServer::ObjectId_var id_;
};

#if defined(__ACE_INLINE__)
#include "Implicit_Deactivator.inl"
#endif /* __ACE_INLINE__ */

#endif /* TAO_PERF_RTEC_IMPLICIT_DEACTIVATOR_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -