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  *  GIOP_Message_Generator_Parser_12.h,v 1.16 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_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_GIOP_Message_State;
00027 class TAO_Service_Context;
00028 class TAO_Transport;
00029 
00030 /**
00031  * @class TAO_GIOP_Message_Generator_Parser_12
00032  *
00033  * @brief Implementation for GIOP v1.2
00034  *
00035  */
00036 
00037 class TAO_Export TAO_GIOP_Message_Generator_Parser_12:
00038   public TAO_GIOP_Message_Generator_Parser
00039 {
00040 public:
00041 
00042   /// Write the request header in to @a msg
00043   virtual int write_request_header (
00044       const TAO_Operation_Details &opdetails,
00045       TAO_Target_Specification &spec,
00046       TAO_OutputCDR &msg
00047     );
00048 
00049   /// Write the LocateRequest header
00050   virtual int write_locate_request_header (
00051       CORBA::ULong request_id,
00052       TAO_Target_Specification &spec,
00053       TAO_OutputCDR &msg
00054     );
00055 
00056   /// Write the reply header in to @a output
00057   virtual int write_reply_header (
00058       TAO_OutputCDR &output,
00059       TAO_Pluggable_Reply_Params_Base &reply
00060       ACE_ENV_ARG_DECL
00061     )
00062     ACE_THROW_SPEC ((CORBA::SystemException));
00063 
00064   /// Writes the locate _reply message in to the @a output
00065   virtual int write_locate_reply_mesg (
00066       TAO_OutputCDR &output,
00067       CORBA::ULong request_id,
00068       TAO_GIOP_Locate_Status_Msg &status
00069     );
00070 
00071   virtual bool write_fragment_header (TAO_OutputCDR & cdr,
00072                                       CORBA::ULong request_id);
00073 
00074   /// Parse the Request Header from the incoming stream. This will do a
00075   /// version specific parsing of the incoming Request header
00076   virtual int parse_request_header (TAO_ServerRequest &);
00077 
00078   /// Parse the LocateRequest Header from the incoming stream. This will do a
00079   /// version specific parsing of the incoming Request header
00080   virtual int parse_locate_header (
00081       TAO_GIOP_Locate_Request_Header &
00082     );
00083 
00084   /// Parse the reply message
00085   virtual int parse_reply (TAO_InputCDR &input,
00086                            TAO_Pluggable_Reply_Params &params);
00087 
00088   /// Parse the locate reply message
00089   virtual int parse_locate_reply (TAO_InputCDR &input,
00090                                   TAO_Pluggable_Reply_Params &params);
00091 
00092   /// Our versions
00093   virtual CORBA::Octet major_version (void);
00094   virtual CORBA::Octet minor_version (void);
00095 
00096   /// Is the messaging object ready for processing BiDirectional
00097   /// request/response?
00098   virtual int is_ready_for_bidirectional (void);
00099 
00100   /// The header length of a fragment
00101   virtual size_t fragment_header_length (void) const;
00102 
00103 private:
00104 
00105   /// Marshall the TargetSpecification
00106 
00107   /// This method may be required for other GIOP versiona coming out
00108   /// later than 1.2. We need to share this method
00109   int marshall_target_spec (TAO_Target_Specification &spec,
00110                             TAO_OutputCDR &msg);
00111 
00112   /// Check whether we have BiDirContext info available. If available
00113   /// delegate  the responsibility on to the TAO_Transport classes to
00114   /// initiate action.
00115   /// @note At somepoint this may be needed for future versions of
00116   /// GIOP and we may have to share this
00117   int check_bidirectional_context (TAO_ServerRequest &);
00118 
00119   /// Process the BiDirContext info that we have received.
00120   int process_bidir_context (TAO_Service_Context &,
00121                              TAO_Transport *transport);
00122 };
00123 
00124 TAO_END_VERSIONED_NAMESPACE_DECL
00125 
00126 #include /**/ "ace/post.h"
00127 
00128 #endif  /* TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H */

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