GIOP_Message_Generator_Parser_12.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // ===================================================================
00004 /**
00005  *  @file   GIOP_Message_Generator_Parser_12.h
00006  *
00007  *  $Id: GIOP_Message_Generator_Parser_12.h 80861 2008-03-07 13:48:34Z johnnyw $
00008  *
00009  *  @author Balachandran Natarajan <bala@cs.wustl.edu>
00010  */
00011 // ===================================================================
00012 
00013 #ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
00014 #define TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_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_Service_Context;
00027 class TAO_Transport;
00028 
00029 /**
00030  * @class TAO_GIOP_Message_Generator_Parser_12
00031  *
00032  * @brief Implementation for GIOP v1.2
00033  *
00034  */
00035 
00036 class TAO_GIOP_Message_Generator_Parser_12:
00037   public TAO_GIOP_Message_Generator_Parser
00038 {
00039 public:
00040 
00041   /// Write the request header in to @a msg
00042   virtual bool write_request_header (
00043       const TAO_Operation_Details &opdetails,
00044       TAO_Target_Specification &spec,
00045       TAO_OutputCDR &msg);
00046 
00047   /// Write the LocateRequest header
00048   virtual bool write_locate_request_header (
00049       CORBA::ULong request_id,
00050       TAO_Target_Specification &spec,
00051       TAO_OutputCDR &msg);
00052 
00053   /// Write the reply header in to @a output
00054   virtual bool write_reply_header (
00055       TAO_OutputCDR &output,
00056       TAO_Pluggable_Reply_Params_Base &reply);
00057 
00058   /// Writes the locate _reply message in to the @a output
00059   virtual bool write_locate_reply_mesg (
00060       TAO_OutputCDR &output,
00061       CORBA::ULong request_id,
00062       TAO_GIOP_Locate_Status_Msg &status);
00063 
00064   virtual bool write_fragment_header (TAO_OutputCDR & cdr,
00065                                       CORBA::ULong request_id);
00066 
00067   /// Parse the Request Header from the incoming stream. This will do a
00068   /// version specific parsing of the incoming Request header
00069   virtual int parse_request_header (TAO_ServerRequest &);
00070 
00071   /// Parse the LocateRequest Header from the incoming stream. This will do a
00072   /// version specific parsing of the incoming Request header
00073   virtual int parse_locate_header (TAO_GIOP_Locate_Request_Header &);
00074 
00075   /// Parse the reply message
00076   virtual int parse_reply (TAO_InputCDR &input,
00077                            TAO_Pluggable_Reply_Params &params);
00078 
00079   /// Parse the locate reply message
00080   virtual int parse_locate_reply (TAO_InputCDR &input,
00081                                   TAO_Pluggable_Reply_Params &params);
00082 
00083   /// Our versions
00084   virtual CORBA::Octet major_version (void) const;
00085   virtual CORBA::Octet minor_version (void) const;
00086 
00087   /// Is the messaging object ready for processing BiDirectional
00088   /// request/response?
00089   virtual bool is_ready_for_bidirectional (void) const;
00090 
00091   /// The header length of a fragment
00092   virtual size_t fragment_header_length (void) const;
00093 
00094 private:
00095 
00096   /// Marshall the TargetSpecification
00097 
00098   /// This method may be required for other GIOP versiona coming out
00099   /// later than 1.2. We need to share this method
00100   bool marshall_target_spec (TAO_Target_Specification &spec,
00101                              TAO_OutputCDR &msg);
00102 };
00103 
00104 TAO_END_VERSIONED_NAMESPACE_DECL
00105 
00106 #include /**/ "ace/post.h"
00107 
00108 #endif  /* TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H */

Generated on Tue Feb 2 17:37:52 2010 for TAO by  doxygen 1.4.7