summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Servant_Upcall.inl
blob: 5f016db3fe6cd10cb919ab399e73a2b00f35f609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// -*- C++ -*-
//
// $Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace Portable_Server
  {
    ACE_INLINE ::TAO_Root_POA &
    Servant_Upcall::poa (void) const
    {
      return *this->poa_;
    }

    ACE_INLINE PortableServer::Servant
    Servant_Upcall::servant (void) const
    {
      return this->servant_;
    }

    ACE_INLINE TAO_Object_Adapter &
    Servant_Upcall::object_adapter (void) const
    {
      return *this->object_adapter_;
    }

    ACE_INLINE const PortableServer::ObjectId &
    Servant_Upcall::id (void) const
    {
      return this->system_id_;
    }

    ACE_INLINE void
    Servant_Upcall::user_id (
      const PortableServer::ObjectId *id)
    {
      this->user_id_ = id;
    }

    ACE_INLINE const PortableServer::ObjectId &
    Servant_Upcall::user_id (void) const
    {
      return *(this->user_id_);
    }

    #if (TAO_HAS_MINIMUM_POA == 0)

    ACE_INLINE void*
    Servant_Upcall::locator_cookie (void) const
    {
      return this->cookie_;
    }

    ACE_INLINE void
    Servant_Upcall::locator_cookie (void* cookie)
    {
      this->cookie_ = cookie;
    }

    ACE_INLINE const char *
    Servant_Upcall::operation (void) const
    {
      return this->operation_;
    }

    ACE_INLINE void
    Servant_Upcall::operation (const char *name)
    {
      this->operation_ = name;
    }

    #endif /* TAO_HAS_MINIMUM_POA == 0 */

    ACE_INLINE void
    Servant_Upcall::active_object_map_entry (TAO_Active_Object_Map_Entry *entry)
    {
      this->active_object_map_entry_ = entry;
    }

    ACE_INLINE TAO_Active_Object_Map_Entry *
    Servant_Upcall::active_object_map_entry (void) const
    {
      return this->active_object_map_entry_;
    }

    ACE_INLINE CORBA::Short
    Servant_Upcall::priority (void) const
    {
      return this->current_context_.priority ();
    }

    ACE_INLINE Servant_Upcall::State
    Servant_Upcall::state (void) const
    {
      return this->state_;
    }

    ACE_INLINE void
    Servant_Upcall::state (Servant_Upcall::State state)
    {
      this->state_ = state;
    }
  }
}

TAO_END_VERSIONED_NAMESPACE_DECL