summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_home.cpp
blob: 25a75156378ef6b96a3f88d4eab245ebe8086d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO IDL
//
// = FILENAME
//    be_home.cpp
//
// = DESCRIPTION
//    Extension of class AST_Home that provides additional means for C++
//    mapping of a component home.
//
// = AUTHOR
//    Jeff Parsons
//
// ============================================================================

#include "be_home.h"
#include "be_visitor.h"

ACE_RCSID (be, 
           be_home, 
           "$Id$")

be_home::be_home (void)
{
  this->size_type (AST_Type::VARIABLE);
}

be_home::be_home (UTL_ScopedName *n,
                  AST_Home *base_home,
                  AST_Component *managed_component,
                  AST_ValueType *primary_key)
  : be_interface (n,
                  0,
                  0,
                  0,
                  0,
                  I_TRUE,
                  I_FALSE),
    AST_Home (n,
              base_home,
              managed_component,
              primary_key),
    AST_Interface (n,
                   0,
                   0,
                   0,
                   0,
                   I_TRUE,
                   I_FALSE),
    AST_Type (AST_Decl::NT_home,
              n),
    AST_Decl (AST_Decl::NT_home,
              n),
    UTL_Scope (AST_Decl::NT_home),
    COMMON_Base (I_TRUE,
                 I_FALSE)
{
  this->size_type (AST_Type::VARIABLE);
}

be_home::~be_home (void)
{
}

void
be_home::destroy (void)
{
  this->be_interface::destroy ();
  this->AST_Home::destroy ();
}

int
be_home::accept (be_visitor *visitor)
{
  return visitor->visit_home (this);
}

// Narrowing
IMPL_NARROW_METHODS2 (be_home, be_interface, AST_Home);
IMPL_NARROW_FROM_DECL (be_home);
IMPL_NARROW_FROM_SCOPE (be_home);