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/Basic_Types.h"
00024 #include "tao/TAO_Export.h"
00025
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028 class TAO_Operation_Details;
00029 class TAO_Target_Specification;
00030 class TAO_OutputCDR;
00031 class TAO_InputCDR;
00032 class TAO_Pluggable_Reply_Params;
00033 class TAO_Pluggable_Reply_Params_Base;
00034 class TAO_GIOP_Locate_Status_Msg;
00035 class TAO_GIOP_Locate_Request_Header;
00036 class TAO_ServerRequest;
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 class TAO_GIOP_Message_Generator_Parser
00049 {
00050 public:
00051
00052 virtual ~TAO_GIOP_Message_Generator_Parser (void);
00053
00054
00055 virtual bool write_request_header (
00056 const TAO_Operation_Details &opdetails,
00057 TAO_Target_Specification &spec,
00058 TAO_OutputCDR &msg) = 0;
00059
00060
00061 virtual bool write_locate_request_header (
00062 CORBA::ULong request_id,
00063 TAO_Target_Specification &spec,
00064 TAO_OutputCDR &msg) = 0;
00065
00066
00067 virtual bool write_reply_header (
00068 TAO_OutputCDR &output,
00069 TAO_Pluggable_Reply_Params_Base &reply) = 0;
00070
00071
00072 virtual bool write_locate_reply_mesg (
00073 TAO_OutputCDR &output,
00074 CORBA::ULong request_id,
00075 TAO_GIOP_Locate_Status_Msg &status) = 0;
00076
00077
00078
00079 virtual bool write_fragment_header (TAO_OutputCDR & cdr,
00080 CORBA::ULong request_id) = 0;
00081
00082
00083
00084 virtual int parse_request_header (TAO_ServerRequest &) = 0;
00085
00086
00087
00088 virtual int parse_locate_header (TAO_GIOP_Locate_Request_Header &) = 0;
00089
00090
00091 virtual int parse_reply (TAO_InputCDR &input,
00092 TAO_Pluggable_Reply_Params ¶ms);
00093
00094
00095 virtual int parse_locate_reply (TAO_InputCDR &input,
00096 TAO_Pluggable_Reply_Params ¶ms);
00097
00098
00099 virtual CORBA::Octet major_version (void) const = 0;
00100 virtual CORBA::Octet minor_version (void) const = 0;
00101
00102
00103
00104 virtual bool is_ready_for_bidirectional (void) const;
00105
00106
00107 virtual size_t fragment_header_length (void) const = 0;
00108 };
00109
00110 TAO_END_VERSIONED_NAMESPACE_DECL
00111
00112 #include "ace/post.h"
00113
00114 #endif