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

« back to all changes in this revision

Viewing changes to TAO/TAO_IDL/be/be_visitor_sequence/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.13 2003/04/22 20:50:06 bala 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 Any operators for the Sequence
15
 
//
16
 
// = AUTHOR
17
 
//    Aniruddha Gokhale
18
 
//
19
 
// ============================================================================
20
 
 
21
 
ACE_RCSID (be_visitor_sequence, 
22
 
           any_op_ch, 
23
 
           "any_op_ch.cpp,v 1.13 2003/04/22 20:50:06 bala Exp")
24
 
 
25
 
// ***************************************************************************
26
 
// Sequence visitor for generating Any operator declarations in the client header
27
 
// ***************************************************************************
28
 
 
29
 
be_visitor_sequence_any_op_ch::be_visitor_sequence_any_op_ch (
30
 
    be_visitor_context *ctx
31
 
  )
32
 
  : be_visitor_decl (ctx)
33
 
{
34
 
}
35
 
 
36
 
be_visitor_sequence_any_op_ch::~be_visitor_sequence_any_op_ch (void)
37
 
{
38
 
}
39
 
 
40
 
int
41
 
be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
42
 
{
43
 
  if (node->cli_hdr_any_op_gen ()
44
 
      || node->imported ())
45
 
    {
46
 
      return 0;
47
 
    }
48
 
 
49
 
  TAO_OutStream *os = this->ctx_->stream ();
50
 
 
51
 
  *os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
52
 
      << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
53
 
 
54
 
  // Generate the Any <<= and >>= operators.
55
 
  *os << be_global->stub_export_macro ();
56
 
  *os << " void"
57
 
      << " operator<<= (CORBA::Any &, const ";
58
 
  *os << node->name ();
59
 
  *os << " &); // copying version" << be_nl;
60
 
  *os << be_global->stub_export_macro ();
61
 
  *os << " void"
62
 
      << " operator<<= (CORBA::Any &, ";
63
 
  *os << node->name ();
64
 
  *os << "*); // noncopying version" << be_nl;
65
 
  *os << be_global->stub_export_macro ();
66
 
  *os << " CORBA::Boolean"
67
 
      << " operator>>= (const CORBA::Any &, ";
68
 
  *os << node->name ();
69
 
  *os << " *&); // deprecated" << be_nl;
70
 
  *os << be_global->stub_export_macro ();
71
 
  *os << " CORBA::Boolean"
72
 
      << " operator>>= (const CORBA::Any &, const ";
73
 
  *os << node->name ();
74
 
  *os << " *&);";
75
 
 
76
 
  node->cli_hdr_any_op_gen (1);
77
 
  return 0;
78
 
}