~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tao/GIOP_Message_Generator_Parser_12.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
// -*- C++ -*-
3
 
// ===================================================================
4
 
/**
5
 
 *  @file   GIOP_Message_Generator_Parser_12.h
6
 
 *
7
 
 *  GIOP_Message_Generator_Parser_12.h,v 1.10 2003/10/28 18:29:14 bala Exp
8
 
 *
9
 
 *  @author Balachandran Natarajan <bala@cs.wustl.edu>
10
 
 */
11
 
// ===================================================================
12
 
 
13
 
#ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
14
 
#define TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
15
 
 
16
 
#include /**/ "ace/pre.h"
17
 
 
18
 
#include "tao/GIOP_Message_Generator_Parser.h"
19
 
 
20
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
21
 
# pragma once
22
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
23
 
 
24
 
class TAO_GIOP_Message_State;
25
 
class TAO_Service_Context;
26
 
class TAO_Transport;
27
 
 
28
 
/**
29
 
 * @class TAO_GIOP_Message_Generator_Parser_12
30
 
 *
31
 
 * @brief Implementation for GIOP v1.2
32
 
 *
33
 
 */
34
 
 
35
 
class TAO_Export TAO_GIOP_Message_Generator_Parser_12:
36
 
  public TAO_GIOP_Message_Generator_Parser
37
 
{
38
 
public:
39
 
 
40
 
  /// Write the request header in to <msg>
41
 
  virtual int write_request_header (
42
 
      const TAO_Operation_Details &opdetails,
43
 
      TAO_Target_Specification &spec,
44
 
      TAO_OutputCDR &msg
45
 
    );
46
 
 
47
 
  /// Write the LocateRequest header
48
 
  virtual int write_locate_request_header (
49
 
      CORBA::ULong request_id,
50
 
      TAO_Target_Specification &spec,
51
 
      TAO_OutputCDR &msg
52
 
    );
53
 
 
54
 
  /// Write the reply header in to <output>
55
 
  virtual int write_reply_header (
56
 
      TAO_OutputCDR &output,
57
 
      TAO_Pluggable_Reply_Params_Base &reply
58
 
      ACE_ENV_ARG_DECL
59
 
    )
60
 
    ACE_THROW_SPEC ((CORBA::SystemException));
61
 
 
62
 
  /// Writes the locate _reply message in to the <output>
63
 
  virtual int write_locate_reply_mesg (
64
 
      TAO_OutputCDR &output,
65
 
      CORBA::ULong request_id,
66
 
      TAO_GIOP_Locate_Status_Msg &status
67
 
    );
68
 
 
69
 
  /// Parse the Request Header from the incoming stream. This will do a
70
 
  /// version specific parsing of the incoming Request header
71
 
  virtual int parse_request_header (TAO_ServerRequest &);
72
 
 
73
 
  /// Parse the LocateRequest Header from the incoming stream. This will do a
74
 
  /// version specific parsing of the incoming Request header
75
 
  virtual int parse_locate_header (
76
 
      TAO_GIOP_Locate_Request_Header &
77
 
    );
78
 
 
79
 
  /// Parse the reply message
80
 
  virtual int parse_reply (TAO_InputCDR &input,
81
 
                           TAO_Pluggable_Reply_Params &params);
82
 
 
83
 
  /// Parse the locate reply message
84
 
  virtual int parse_locate_reply (TAO_InputCDR &input,
85
 
                                  TAO_Pluggable_Reply_Params &params);
86
 
 
87
 
  /// Our versions
88
 
  virtual CORBA::Octet major_version (void);
89
 
  virtual CORBA::Octet minor_version (void);
90
 
 
91
 
  /// Is the messaging object ready for processing BiDirectional
92
 
  /// request/response?
93
 
  virtual int is_ready_for_bidirectional (void);
94
 
 
95
 
private:
96
 
 
97
 
  /// Marshall the TargetSpecification
98
 
 
99
 
  /// This method may be required for other GIOP versiona coming out
100
 
  /// later than 1.2. We need to share this method
101
 
  int marshall_target_spec (TAO_Target_Specification &spec,
102
 
                            TAO_OutputCDR &msg);
103
 
 
104
 
  /// Check whether we have BiDirContext info available. If available
105
 
  /// delegate  the responsibility on to the TAO_Transport classes to
106
 
  /// initiate action.
107
 
  /// Note: At somepoint this may be needed for future versions of
108
 
  /// GIOP and we may have to share this
109
 
  int check_bidirectional_context (TAO_ServerRequest &);
110
 
 
111
 
  /// Process the BiDirContext info that we have received.
112
 
  int process_bidir_context (TAO_Service_Context &,
113
 
                             TAO_Transport *transport);
114
 
};
115
 
 
116
 
 
117
 
#if defined (__ACE_INLINE__)
118
 
# include "tao/GIOP_Message_Generator_Parser_12.inl"
119
 
#endif /* __ACE_INLINE__ */
120
 
 
121
 
#include /**/ "ace/post.h"
122
 
#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H*/