Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / GIOP_Message_Generator_Parser_10.h
blobb4c277bb3d20aadffd83723fb1fd5004be548fae
1 // -*- C++ -*-
3 // ===================================================================
4 /**
5 * @file GIOP_Message_Generator_Parser_10.h
7 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 */
9 // ===================================================================
11 #ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H
12 #define TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H
14 #include /**/ "ace/pre.h"
16 #include "tao/GIOP_Message_Generator_Parser.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 /**
25 * @class TAO_GIOP_Message_Generator_Parser_10
27 * @brief Implementation for GIOP v1.0
30 class TAO_GIOP_Message_Generator_Parser_10:
31 public TAO_GIOP_Message_Generator_Parser
33 public:
34 /// Write the request header in to @a msg
35 virtual bool write_request_header (
36 const TAO_Operation_Details &opdetails,
37 TAO_Target_Specification &spec,
38 TAO_OutputCDR &msg);
40 /// Write the LocateRequest header
41 virtual bool write_locate_request_header (
42 CORBA::ULong request_id,
43 TAO_Target_Specification &spec,
44 TAO_OutputCDR &msg);
46 /// Write the reply header in to @a output
47 virtual bool write_reply_header (
48 TAO_OutputCDR &output,
49 TAO_Pluggable_Reply_Params_Base &reply);
51 /// Writes the locate _reply message in to the @a output
52 virtual bool write_locate_reply_mesg (
53 TAO_OutputCDR &output,
54 CORBA::ULong request_id,
55 TAO_GIOP_Locate_Status_Msg &status);
57 virtual bool write_fragment_header (TAO_OutputCDR & cdr,
58 CORBA::ULong request_id);
60 /// Parse the Request Header from the incoming stream. This will do a
61 /// version specific parsing of the incoming Request header
62 virtual int parse_request_header (TAO_ServerRequest &);
64 /// Parse the LocateRequest Header from the incoming stream. This will do a
65 /// version specific parsing of the incoming Request header
66 virtual int parse_locate_header (
67 TAO_GIOP_Locate_Request_Header &);
69 /// Parse the reply message from the server
70 virtual int parse_reply (TAO_InputCDR &input,
71 TAO_Pluggable_Reply_Params &params);
73 /// Parse the reply message from the server
74 virtual int parse_locate_reply (TAO_InputCDR &input,
75 TAO_Pluggable_Reply_Params &params);
77 /// Our versions
78 virtual CORBA::Octet major_version () const;
79 virtual CORBA::Octet minor_version () const;
81 /// The header length of a fragment
82 virtual size_t fragment_header_length () const;
85 TAO_END_VERSIONED_NAMESPACE_DECL
87 #include /**/ "ace/post.h"
89 #endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H*/