implicit_deactivator.h

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 53 行

H
53
字号
/**
 * @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 + =
减小字号Ctrl + -
显示快捷键?