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  *  $Id: GIOP_Message_Generator_Parser_10.h 80805 2008-03-03 14:53:30Z johnnyw $
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 /**
00027  * @class TAO_GIOP_Message_Generator_Parser_10
00028  *
00029  * @brief Implementation for GIOP v1.0
00030  *
00031  */
00032 
00033 class TAO_GIOP_Message_Generator_Parser_10:
00034   public TAO_GIOP_Message_Generator_Parser
00035 {
00036 public:
00037 
00038   /// Write the request header in to @a msg
00039   virtual bool write_request_header (
00040       const TAO_Operation_Details &opdetails,
00041       TAO_Target_Specification &spec,
00042       TAO_OutputCDR &msg);
00043 
00044   /// Write the LocateRequest header
00045   virtual bool write_locate_request_header (
00046       CORBA::ULong request_id,
00047       TAO_Target_Specification &spec,
00048       TAO_OutputCDR &msg
00049     );
00050 
00051   /// Write the reply header in to @a output
00052   virtual bool write_reply_header (
00053       TAO_OutputCDR &output,
00054       TAO_Pluggable_Reply_Params_Base &reply
00055 
00056     );
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 
00065   virtual bool write_fragment_header (TAO_OutputCDR & cdr,
00066                                       CORBA::ULong request_id);
00067 
00068   /// Parse the Request Header from the incoming stream. This will do a
00069   /// version specific parsing of the incoming Request header
00070   virtual int parse_request_header (TAO_ServerRequest &);
00071 
00072   /// Parse the LocateRequest Header from the incoming stream. This will do a
00073   /// version specific parsing of the incoming Request header
00074   virtual int parse_locate_header (
00075       TAO_GIOP_Locate_Request_Header &
00076     );
00077 
00078   /// Parse the reply message from the server
00079   virtual int parse_reply (TAO_InputCDR &input,
00080                            TAO_Pluggable_Reply_Params &params);
00081 
00082     /// Parse the reply message from the server
00083   virtual int parse_locate_reply (TAO_InputCDR &input,
00084                                   TAO_Pluggable_Reply_Params &params);
00085 
00086   /// Our versions
00087   virtual CORBA::Octet major_version (void) const;
00088   virtual CORBA::Octet minor_version (void) const;
00089 
00090   /// The header length of a fragment
00091   virtual size_t fragment_header_length (void) const;
00092 };
00093 
00094 TAO_END_VERSIONED_NAMESPACE_DECL
00095 
00096 #include /**/ "ace/post.h"
00097 
00098 #endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H*/

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