2 * @file Implicit_Deactivator.h
4 * @author Carlos O'Ryan <coryan@uci.edu>
6 #ifndef TAO_PERF_RTEC_IMPLICIT_DEACTIVATOR_H
7 #define TAO_PERF_RTEC_IMPLICIT_DEACTIVATOR_H
9 #include "rtec_perf_export.h"
10 #include "tao/PortableServer/PortableServer.h"
13 * @class Implicit_Deactivator
15 * @brief Automatically deactivate an implicitly activated object.
17 class TAO_RTEC_Perf_Export Implicit_Deactivator
22 * @param client The client
24 explicit Implicit_Deactivator (PortableServer::Servant servant
= 0);
25 Implicit_Deactivator (Implicit_Deactivator
& rhs
);
26 Implicit_Deactivator
& operator= (Implicit_Deactivator
& rhs
);
29 ~Implicit_Deactivator ();
31 /// Assignment operator
32 Implicit_Deactivator
& operator= (PortableServer::Servant servant
);
34 /// Release the servant, i.e. the destructor does not deactivate anything
39 PortableServer::POA_var poa_
;
42 PortableServer::ObjectId_var id_
;
45 #if defined(__ACE_INLINE__)
46 #include "Implicit_Deactivator.inl"
47 #endif /* __ACE_INLINE__ */
49 #endif /* TAO_PERF_RTEC_IMPLICIT_DEACTIVATOR_H */