Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Active_Object_Map_Entry.h
blob45429d8b0e86770185de44808dad940c9892ee73
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Active_Object_Map_Entry.h
7 * @author Irfan Pyarali
8 */
9 //=============================================================================
12 #ifndef TAO_ACTIVE_OBJECT_MAP_ENTRY_H
13 #define TAO_ACTIVE_OBJECT_MAP_ENTRY_H
15 #include /**/ "ace/pre.h"
17 #include "tao/PortableServer/PS_ForwardC.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
27 * @struct TAO_Active_Object_Map_Entry
29 * @brief Value field of the active object map.
31 * We need a mapping from and to all of the following fields:
32 * user_id, system_id, and servant. Therefore, we keep
33 * all the fields together in the map.
35 struct TAO_Active_Object_Map_Entry
37 /// Default constructor.
38 TAO_Active_Object_Map_Entry ();
40 /// User id.
41 PortableServer::ObjectId user_id_;
43 /// System id.
44 PortableServer::ObjectId system_id_;
46 /// Servant.
47 PortableServer::Servant servant_;
49 /// Reference count on outstanding requests on this servant.
50 CORBA::UShort reference_count_;
52 /// Has this servant been deactivated already?
53 CORBA::Boolean deactivated_;
55 /// Priority of this servant.
56 CORBA::Short priority_;
59 TAO_END_VERSIONED_NAMESPACE_DECL
61 #include /**/ "ace/post.h"
63 #endif /* TAO_ACTIVE_OBJECT_MAP_ENTRY_H */