00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_H
00014 #define TAO_GIOP_MESSAGE_GENERATOR_PARSER_H
00015
00016 #include "ace/pre.h"
00017 #include "ace/Global_Macros.h"
00018
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif
00022
00023 #include "tao/SystemException.h"
00024
00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00026
00027 class TAO_Operation_Details;
00028 class TAO_Target_Specification;
00029 class TAO_OutputCDR;
00030 class TAO_InputCDR;
00031 class TAO_Pluggable_Reply_Params;
00032 class TAO_Pluggable_Reply_Params_Base;
00033 class TAO_GIOP_Locate_Status_Msg;
00034 class TAO_GIOP_Locate_Request_Header;
00035 class TAO_ServerRequest;
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 class TAO_Export TAO_GIOP_Message_Generator_Parser
00048 {
00049 public:
00050
00051 virtual ~TAO_GIOP_Message_Generator_Parser (void);
00052
00053
00054 virtual int write_request_header (
00055 const TAO_Operation_Details &opdetails,
00056 TAO_Target_Specification &spec,
00057 TAO_OutputCDR &msg) = 0;
00058
00059
00060 virtual int write_locate_request_header (
00061 CORBA::ULong request_id,
00062 TAO_Target_Specification &spec,
00063 TAO_OutputCDR &msg) = 0;
00064
00065
00066 virtual int write_reply_header (
00067 TAO_OutputCDR &output,
00068 TAO_Pluggable_Reply_Params_Base &reply
00069 ACE_ENV_ARG_DECL)
00070 ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
00071
00072
00073 virtual int write_locate_reply_mesg (
00074 TAO_OutputCDR &output,
00075 CORBA::ULong request_id,
00076 TAO_GIOP_Locate_Status_Msg &status) = 0;
00077
00078
00079
00080 virtual bool write_fragment_header (TAO_OutputCDR & cdr,
00081 CORBA::ULong request_id) = 0;
00082
00083
00084
00085 virtual int parse_request_header (TAO_ServerRequest &) = 0;
00086
00087
00088
00089 virtual int parse_locate_header (
00090 TAO_GIOP_Locate_Request_Header &) = 0;
00091
00092
00093 virtual int parse_reply (TAO_InputCDR &input,
00094 TAO_Pluggable_Reply_Params ¶ms);
00095
00096
00097 virtual int parse_locate_reply (TAO_InputCDR &input,
00098 TAO_Pluggable_Reply_Params ¶ms);
00099
00100
00101 virtual CORBA::Octet major_version (void) = 0;
00102 virtual CORBA::Octet minor_version (void) = 0;
00103
00104
00105
00106 virtual int is_ready_for_bidirectional (void);
00107
00108
00109 virtual size_t fragment_header_length (void) const = 0;
00110
00111 protected:
00112
00113
00114 void marshal_reply_status (TAO_OutputCDR &output,
00115 TAO_Pluggable_Reply_Params_Base &reply);
00116
00117 };
00118
00119 TAO_END_VERSIONED_NAMESPACE_DECL
00120
00121 #include "ace/post.h"
00122
00123 #endif