3
// ===================================================================
5
* @file GIOP_Message_Generator_Parser_12.h
7
* GIOP_Message_Generator_Parser_12.h,v 1.10 2003/10/28 18:29:14 bala Exp
9
* @author Balachandran Natarajan <bala@cs.wustl.edu>
11
// ===================================================================
13
#ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
14
#define TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
16
#include /**/ "ace/pre.h"
18
#include "tao/GIOP_Message_Generator_Parser.h"
20
#if !defined (ACE_LACKS_PRAGMA_ONCE)
22
#endif /* ACE_LACKS_PRAGMA_ONCE */
24
class TAO_GIOP_Message_State;
25
class TAO_Service_Context;
29
* @class TAO_GIOP_Message_Generator_Parser_12
31
* @brief Implementation for GIOP v1.2
35
class TAO_Export TAO_GIOP_Message_Generator_Parser_12:
36
public TAO_GIOP_Message_Generator_Parser
40
/// Write the request header in to <msg>
41
virtual int write_request_header (
42
const TAO_Operation_Details &opdetails,
43
TAO_Target_Specification &spec,
47
/// Write the LocateRequest header
48
virtual int write_locate_request_header (
49
CORBA::ULong request_id,
50
TAO_Target_Specification &spec,
54
/// Write the reply header in to <output>
55
virtual int write_reply_header (
56
TAO_OutputCDR &output,
57
TAO_Pluggable_Reply_Params_Base &reply
60
ACE_THROW_SPEC ((CORBA::SystemException));
62
/// Writes the locate _reply message in to the <output>
63
virtual int write_locate_reply_mesg (
64
TAO_OutputCDR &output,
65
CORBA::ULong request_id,
66
TAO_GIOP_Locate_Status_Msg &status
69
/// Parse the Request Header from the incoming stream. This will do a
70
/// version specific parsing of the incoming Request header
71
virtual int parse_request_header (TAO_ServerRequest &);
73
/// Parse the LocateRequest Header from the incoming stream. This will do a
74
/// version specific parsing of the incoming Request header
75
virtual int parse_locate_header (
76
TAO_GIOP_Locate_Request_Header &
79
/// Parse the reply message
80
virtual int parse_reply (TAO_InputCDR &input,
81
TAO_Pluggable_Reply_Params ¶ms);
83
/// Parse the locate reply message
84
virtual int parse_locate_reply (TAO_InputCDR &input,
85
TAO_Pluggable_Reply_Params ¶ms);
88
virtual CORBA::Octet major_version (void);
89
virtual CORBA::Octet minor_version (void);
91
/// Is the messaging object ready for processing BiDirectional
93
virtual int is_ready_for_bidirectional (void);
97
/// Marshall the TargetSpecification
99
/// This method may be required for other GIOP versiona coming out
100
/// later than 1.2. We need to share this method
101
int marshall_target_spec (TAO_Target_Specification &spec,
104
/// Check whether we have BiDirContext info available. If available
105
/// delegate the responsibility on to the TAO_Transport classes to
107
/// Note: At somepoint this may be needed for future versions of
108
/// GIOP and we may have to share this
109
int check_bidirectional_context (TAO_ServerRequest &);
111
/// Process the BiDirContext info that we have received.
112
int process_bidir_context (TAO_Service_Context &,
113
TAO_Transport *transport);
117
#if defined (__ACE_INLINE__)
118
# include "tao/GIOP_Message_Generator_Parser_12.inl"
119
#endif /* __ACE_INLINE__ */
121
#include /**/ "ace/post.h"
122
#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H*/