blob: 57edfac963082c3001fa149994c3756a95db7027 (
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
|
// -*- C++ -*-
// $Id$
// @@ TODO TAO allocates its ServerRequest objects from the stack,
// using reference counting wouldn't help much. Using a _clone()
// method would make the following methods really easy to implement,
// but that's hard to implement for the extremely optimized
// TAO_GIOP_ServerRequest.
// Another solution would be to modify the class hierarchy, make
// ServerRequest the "slow" version (with copies for each field) and
// TAO_GIOP_ServerRequest the "fast" version (with no copies at all). The
// first would be use for DII and the later for SII.
ACE_INLINE TAO_InputCDR &
TAO_GIOP_ServerRequest::incoming (void)
{
return *this->incoming_;
}
ACE_INLINE TAO_OutputCDR &
TAO_GIOP_ServerRequest::outgoing (void)
{
return *this->outgoing_;
}
// Invocation attributes.
ACE_INLINE const char *
TAO_GIOP_ServerRequest::operation (void) const
{
return this->operation_.c_str ();
}
// get the length of the operation name.
ACE_INLINE unsigned int
TAO_GIOP_ServerRequest::operation_length (void) const
{
return this->operation_.length ();
}
#if 0
//@@ (TAO) to do after Context is implemented
ACE_INLINE CORBA::Context_ptr
TAO_GIOP_ServerRequest::ctx (void)
{
return 0;
}
#endif
ACE_INLINE CORBA::Boolean
TAO_GIOP_ServerRequest::response_expected (void) const
{
return this->response_expected_;
}
ACE_INLINE CORBA::Principal_ptr
TAO_GIOP_ServerRequest::principal (void) const
{
return this->requesting_principal_.ptr ();
}
ACE_INLINE const TAO_ObjectKey &
TAO_GIOP_ServerRequest::object_key (void) const
{
return this->object_key_;
}
ACE_INLINE IOP::ServiceContextList &
TAO_GIOP_ServerRequest::service_info (void)
{
return this->service_info_;
}
ACE_INLINE CORBA::ULong
TAO_GIOP_ServerRequest::request_id (void)
{
return this->request_id_;
}
|