blob: 01d3c9b31387c20237beceffcc85ce3ab98b85bd (
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
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// Reply_Dispatcher.h
//
// = DESCRIPTION
// Dispatch the reply appropriately.
//
// = AUTHOR
// Alexander Babu Arulanthu <alex@cs.wustl.edu>
//
// ============================================================================
#ifndef TAO_REPLY_DISPATCHER_H
#define TAO_REPLY_DISPATCHER_H
#include "tao/GIOP.h"
// Forward Declarations.
class TAO_Stub;
class TAO_InputCDR;
class TAO_Export TAO_Reply_Dispatcher
{
// = TITLE
//
// = DESCRIPTION
//
public:
TAO_Reply_Dispatcher (void);
// Constructor.
virtual ~TAO_Reply_Dispatcher (void);
// Destructor.
void request_id (CORBA::ULong request_id);
// Set the request id.
CORBA::ULong request_id (void) const;
// Return the request id.
void reply_status (CORBA::ULong reply_status);
// Set the reply status. Reply status is stored as read from the
// incoming message. Readers of this data should see it whether this
// number fits into the TAO_GIOP_ReplyStatusType type.
CORBA::ULong reply_status (void) const;
// Get the reply status.
void cdr (TAO_InputCDR *cdr);
// Set the CDR which the has the reply message.
TAO_InputCDR *cdr (void) const;
// Get the CDR stream.
virtual int dispatch_reply (void) = 0;
// Dispatch the reply.
protected:
CORBA::ULong request_id_;
// Request ID for this request.
TAO_InputCDR *cdr_;
// CDR stream for reading the input.
CORBA::ULong reply_status_;
// Replt status.
};
class TAO_Export TAO_Synch_Reply_Dispatcher : public TAO_Reply_Dispatcher
{
// = TITLE
//
// Reply dispatcher for Synchoronous Method Invocation (SMI)s.
//
// = DESCRIPTION
//
public:
TAO_Synch_Reply_Dispatcher (void);
// Constructor.
virtual ~TAO_Synch_Reply_Dispatcher (void);
// Destructor.
virtual int dispatch_reply (void);
// NO OP.
};
#endif /* TAO_REPLY_DISPATCHER_H */
|