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

« back to all changes in this revision

Viewing changes to TAO/TAO_IDL/be/be_visitor_component/component_ci.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
 
// component_ci.cpp,v 1.2 2003/03/30 15:19:31 bala Exp
3
 
//
4
 
 
5
 
// ============================================================================
6
 
//
7
 
// = LIBRARY
8
 
//    TAO IDL
9
 
//
10
 
// = FILENAME
11
 
//    component_ci.cpp
12
 
//
13
 
// = DESCRIPTION
14
 
//    Visitor generating code for Components in the client inline.
15
 
//
16
 
// = AUTHOR
17
 
//    Jeff Parsons
18
 
//
19
 
// ============================================================================
20
 
 
21
 
ACE_RCSID (be_visitor_component,
22
 
           component_ci,
23
 
           "component_ci.cpp,v 1.2 2003/03/30 15:19:31 bala Exp")
24
 
 
25
 
// ******************************************************
26
 
// Component visitor for client inline
27
 
// ******************************************************
28
 
 
29
 
be_visitor_component_ci::be_visitor_component_ci (be_visitor_context *ctx)
30
 
  : be_visitor_component (ctx)
31
 
{
32
 
}
33
 
 
34
 
be_visitor_component_ci::~be_visitor_component_ci (void)
35
 
{
36
 
}
37
 
 
38
 
int
39
 
be_visitor_component_ci::visit_component (be_component *node)
40
 
{
41
 
  if (node->imported () || node->cli_inline_gen ())
42
 
    {
43
 
      return 0;
44
 
    }
45
 
 
46
 
  TAO_OutStream *os = this->ctx_->stream ();
47
 
 
48
 
  *os << "// TAO_IDL - Generated from" << be_nl
49
 
      << "// " << __FILE__ << ":" << __LINE__ << be_nl;
50
 
 
51
 
  os->gen_ifdef_macro (node->flat_name (), "");
52
 
 
53
 
  // Generate the constructor from stub and servant.
54
 
  node->gen_stub_ctor (os);
55
 
 
56
 
  *os << be_nl << be_nl
57
 
      << "ACE_INLINE" << be_nl;
58
 
  *os << node->name () << "::"
59
 
      << node->local_name () << " ("
60
 
      << be_idt << be_idt_nl
61
 
      << "IOP::IOR *ior," << be_nl
62
 
      << "TAO_ORB_Core *oc" << be_uidt_nl
63
 
      << ")"
64
 
      << be_nl;
65
 
  *os << ": ACE_NESTED_CLASS (CORBA, Object) (ior, oc)";
66
 
 
67
 
  *os << be_nl << "{" << be_idt_nl
68
 
      << "}" ;
69
 
 
70
 
  os->gen_endif ();
71
 
  node->cli_inline_gen (I_TRUE);
72
 
  return 0;
73
 
}