GIOP_Message_Generator_Parser_10.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // ===================================================================
00004 /**
00005  *  @file   GIOP_Message_Generator_Parser_10.h
00006  *
00007  *  GIOP_Message_Generator_Parser_10.h,v 1.14 2006/04/20 12:37:17 jwillemsen Exp
00008  *
00009  *  @author Balachandran Natarajan <bala@cs.wustl.edu>
00010  */
00011 // ===================================================================
00012 
00013 #ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H
00014 #define TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "tao/GIOP_Message_Generator_Parser.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025 
00026 class TAO_GIOP_Message_State;
00027 
00028 /**
00029  * @class TAO_GIOP_Message_Generator_Parser_10
00030  *
00031  * @brief Implementation for GIOP v1.0
00032  *
00033  */
00034 
00035 class TAO_Export TAO_GIOP_Message_Generator_Parser_10:
00036   public TAO_GIOP_Message_Generator_Parser
00037 {
00038 public:
00039 
00040   /// Write the request header in to @a msg
00041   virtual int write_request_header (
00042       const TAO_Operation_Details &opdetails,
00043       TAO_Target_Specification &spec,
00044       TAO_OutputCDR &msg
00045     );
00046 
00047   /// Write the LocateRequest header
00048   virtual int write_locate_request_header (
00049       CORBA::ULong request_id,
00050       TAO_Target_Specification &spec,
00051       TAO_OutputCDR &msg
00052     );
00053 
00054   /// Write the reply header in to @a output
00055   virtual int write_reply_header (
00056       TAO_OutputCDR &output,
00057       TAO_Pluggable_Reply_Params_Base &reply
00058       ACE_ENV_ARG_DECL
00059     )
00060     ACE_THROW_SPEC ((CORBA::SystemException));
00061 
00062   /// Writes the locate _reply message in to the @a output
00063   virtual int write_locate_reply_mesg (
00064       TAO_OutputCDR &output,
00065       CORBA::ULong request_id,
00066       TAO_GIOP_Locate_Status_Msg &status
00067     );
00068 
00069   virtual bool write_fragment_header (TAO_OutputCDR & cdr,
00070                                       CORBA::ULong request_id);
00071 
00072   /// Parse the Request Header from the incoming stream. This will do a
00073   /// version specific parsing of the incoming Request header
00074   virtual int parse_request_header (TAO_ServerRequest &);
00075 
00076   /// Parse the LocateRequest Header from the incoming stream. This will do a
00077   /// version specific parsing of the incoming Request header
00078   virtual int parse_locate_header (
00079       TAO_GIOP_Locate_Request_Header &
00080     );
00081 
00082   /// Parse the reply message from the server
00083   virtual int parse_reply (TAO_InputCDR &input,
00084                            TAO_Pluggable_Reply_Params &params);
00085 
00086     /// Parse the reply message from the server
00087   virtual int parse_locate_reply (TAO_InputCDR &input,
00088                                   TAO_Pluggable_Reply_Params &params);
00089 
00090   /// Our versions
00091   virtual CORBA::Octet major_version (void);
00092   virtual CORBA::Octet minor_version (void);
00093 
00094   /// The header length of a fragment
00095   virtual size_t fragment_header_length (void) const;
00096 };
00097 
00098 TAO_END_VERSIONED_NAMESPACE_DECL
00099 
00100 #include /**/ "ace/post.h"
00101 
00102 #endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H*/

Generated on Thu Nov 9 11:54:12 2006 for TAO by doxygen 1.3.6