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

« back to all changes in this revision

Viewing changes to TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp

  • 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
 
// any_op_ch.cpp,v 1.9 2002/09/25 16:25:35 parsons Exp
3
 
//
4
 
 
5
 
// ============================================================================
6
 
//
7
 
// = LIBRARY
8
 
//    TAO IDL
9
 
//
10
 
// = FILENAME
11
 
//    any_op_ch.cpp
12
 
//
13
 
// = DESCRIPTION
14
 
//    Visitor generating code for Enums for the Any operators
15
 
//
16
 
// = AUTHOR
17
 
//    Aniruddha Gokhale
18
 
//
19
 
// ============================================================================
20
 
 
21
 
ACE_RCSID (be_visitor_enum, 
22
 
           any_op_ch, 
23
 
           "any_op_ch.cpp,v 1.9 2002/09/25 16:25:35 parsons Exp")
24
 
 
25
 
// ***************************************************************************
26
 
// Enum visitor for generating Any operator declarations in the client header
27
 
// ***************************************************************************
28
 
 
29
 
be_visitor_enum_any_op_ch::be_visitor_enum_any_op_ch (
30
 
    be_visitor_context *ctx
31
 
  )
32
 
  : be_visitor_scope (ctx)
33
 
{
34
 
}
35
 
 
36
 
be_visitor_enum_any_op_ch::~be_visitor_enum_any_op_ch (void)
37
 
{
38
 
}
39
 
 
40
 
int
41
 
be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
42
 
{
43
 
  if (node->cli_hdr_any_op_gen () || node->imported ())
44
 
    {
45
 
      return 0;
46
 
    }
47
 
 
48
 
  TAO_OutStream *os = this->ctx_->stream ();
49
 
 
50
 
  *os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
51
 
      << "// " << __FILE__ << ":" << __LINE__;
52
 
 
53
 
  // Generate the Any <<= and >>= operators.
54
 
  *os << be_nl << be_nl 
55
 
      << be_global->stub_export_macro () << " void"
56
 
      << " operator<<= (CORBA::Any &, " << node->name ()
57
 
      << ");" << be_nl;
58
 
  *os << be_global->stub_export_macro () << " CORBA::Boolean"
59
 
      << " operator>>= (const CORBA::Any &, "
60
 
      << node->name () << " &);";
61
 
 
62
 
  node->cli_hdr_any_op_gen (1);
63
 
  return 0;
64
 
}