summaryrefslogtreecommitdiff
path: root/TAO/tao/operation_details.i
blob: 736261b89f72b4bd6f10b91208ad14bd2ae79ef2 (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
// -*- C++ -*-
//$Id$
ACE_INLINE
TAO_Operation_Details::TAO_Operation_Details (const char *name,
                                              CORBA::ULong len)
  :opname_ (name),
   opname_len_ (len),
   request_id_ (0),
   response_flags_ (0),
   addressing_mode_ (TAO_Target_Specification::Key_Addr)
{
  //no-op
}

ACE_INLINE const char*
TAO_Operation_Details::opname (void) const
{
  return this->opname_;
}

ACE_INLINE CORBA::ULong
TAO_Operation_Details::opname_len (void) const
{
  return this->opname_len_;
}

ACE_INLINE IOP::ServiceContextList &
TAO_Operation_Details::service_info (void)
{
  return this->service_info_;
}

ACE_INLINE const IOP::ServiceContextList &
TAO_Operation_Details::service_info (void) const
{
  return this->service_info_;
}

ACE_INLINE void
TAO_Operation_Details::request_id (CORBA::ULong id)
{
  this->request_id_ = id;
}

ACE_INLINE CORBA::ULong
TAO_Operation_Details::request_id (void)
{
  return this->request_id_;
}

ACE_INLINE CORBA::ULong
TAO_Operation_Details::request_id (void) const
{
  return this->request_id_;
}

ACE_INLINE void
TAO_Operation_Details::response_flags (CORBA::Octet flags)
{
  this->response_flags_ = flags;
}

ACE_INLINE CORBA::Octet
TAO_Operation_Details::response_flags (void)
{
  return this->response_flags_;
}

ACE_INLINE CORBA::Octet
TAO_Operation_Details::response_flags (void) const
{
  return this->response_flags_;
}

ACE_INLINE TAO_Target_Specification::TAO_Target_Address 
TAO_Operation_Details::addressing_mode (void)
{
  return this->addressing_mode_;
}

ACE_INLINE TAO_Target_Specification::TAO_Target_Address 
TAO_Operation_Details::addressing_mode (void) const
{
  return this->addressing_mode_;
}

ACE_INLINE void 
TAO_Operation_Details::
  addressing_mode (CORBA::Short mode) 
{
  if (mode == 0)
      this->addressing_mode_ = TAO_Target_Specification::Key_Addr;
  else if (mode == 1)
    this->addressing_mode_ = TAO_Target_Specification::Profile_Addr;
  else if (mode == 2)
      this->addressing_mode_ = TAO_Target_Specification::Reference_Addr;
}