summaryrefslogtreecommitdiff
path: root/TAO/tao/Invocation.i
blob: 6195b9db53a19e90a08f826c043a51a61d32697f (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
// This may look like C, but it's really -*- C++ -*-
//
// $Id$
//

ACE_INLINE void
TAO_GIOP_Invocation::put_param (CORBA::TypeCode_ptr tc,
                                void *value,
                                CORBA::Environment &env)
{
  (void) this->out_stream_.encode (tc, value, 0, env);
}

ACE_INLINE TAO_OutputCDR &
TAO_GIOP_Invocation::out_stream (void)
{
  return this->out_stream_;
}

// ****************************************************************

ACE_INLINE
TAO_GIOP_Twoway_Invocation::
TAO_GIOP_Twoway_Invocation (IIOP_Object *data,
			    const char *operation,
			    TAO_ORB_Core *orb_core)
  : TAO_GIOP_Invocation (data, operation, orb_core),
    inp_stream_ (orb_core->create_input_cdr_data_block (CDR::DEFAULT_BUFSIZE),
                 TAO_ENCAP_BYTE_ORDER,
                 TAO_Marshal::DEFAULT_MARSHAL_FACTORY)
{
}

ACE_INLINE void
TAO_GIOP_Twoway_Invocation::start (CORBA::Environment &env)
{
  TAO_GIOP_Invocation::start (1, TAO_GIOP::Request, env);
}

ACE_INLINE void
TAO_GIOP_Twoway_Invocation::get_value (CORBA::TypeCode_ptr tc,
                                void *value,
                                CORBA::Environment &env)
{
  (void) this->inp_stream_.decode (tc, value, 0, env);
}

ACE_INLINE TAO_InputCDR &
TAO_GIOP_Twoway_Invocation::inp_stream (void)
{
  return this->inp_stream_;
}

// ****************************************************************

ACE_INLINE
TAO_GIOP_Oneway_Invocation::
TAO_GIOP_Oneway_Invocation (IIOP_Object *data,
			    const char *operation,
			    TAO_ORB_Core *orb_core)
  : TAO_GIOP_Invocation (data, operation, orb_core)
{
}

ACE_INLINE void
TAO_GIOP_Oneway_Invocation::start (CORBA::Environment &env)
{
  TAO_GIOP_Invocation::start (0, TAO_GIOP::Request, env);
}

ACE_INLINE TAO_GIOP_ReplyStatusType
TAO_GIOP_Oneway_Invocation::invoke (CORBA::Environment &env)
{
  return TAO_GIOP_Invocation::invoke (0, env);
}

// ****************************************************************

ACE_INLINE
TAO_GIOP_Locate_Request_Invocation::
TAO_GIOP_Locate_Request_Invocation (IIOP_Object *data,
				    TAO_ORB_Core *orb_core)
  : TAO_GIOP_Invocation (data, 0, orb_core),
    inp_stream_ (orb_core->create_input_cdr_data_block (CDR::DEFAULT_BUFSIZE))
{
}

ACE_INLINE void
TAO_GIOP_Locate_Request_Invocation::start (CORBA::Environment &env)
{
  TAO_GIOP_Invocation::start (1, TAO_GIOP::LocateRequest, env);
}