Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / performance-tests / RTEvent / lib / Implicit_Deactivator.h
blob75224f06c7312fcaaa2ce885fa95bd1093082721
1 /**
2 * @file Implicit_Deactivator.h
4 * @author Carlos O'Ryan <coryan@uci.edu>
5 */
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"
12 /**
13 * @class Implicit_Deactivator
15 * @brief Automatically deactivate an implicitly activated object.
17 class TAO_RTEC_Perf_Export Implicit_Deactivator
19 public:
20 /// Constructor
21 /**
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);
28 /// Destructor
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
35 void release ();
37 private:
38 /// The POA
39 PortableServer::POA_var poa_;
41 /// The object id
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 */