summaryrefslogtreecommitdiff
path: root/trunk/CIAO/CCF/CCF/IDL2/SemanticGraph/Interface.cpp
blob: 4083549f3e22916f18ddce15a365ace0b4c74929 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// file      : CCF/IDL2/SemanticGraph/Interface.cpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#include "CCF/IDL2/SemanticGraph/Interface.hpp"

namespace CCF
{
  namespace IDL2
  {
    namespace SemanticGraph
    {
      using Introspection::TypeInfo;
      using Introspection::Access;


      // Interface
      //
      //
      namespace
      {
        TypeInfo
        interface_init_ ()
        {
          TypeInfo ti (typeid (Interface));
          ti.add_base (Access::PUBLIC, true, Type::static_type_info ());
          ti.add_base (Access::PUBLIC, true, Scope::static_type_info ());
          return ti;
        }

        TypeInfo interface_ (interface_init_ ());
      }

      TypeInfo const& Interface::
      static_type_info () { return interface_; }

      Interface::
      ~Interface ()
      {
      }

      // Supports
      //
      //
      namespace
      {
        TypeInfo
        supports_init_ ()
        {
          TypeInfo ti (typeid (Supports));
          ti.add_base (Access::PUBLIC, true, IsA::static_type_info ());
          return ti;
        }

        TypeInfo supports_ (supports_init_ ());
      }

      TypeInfo const& Supports::
      static_type_info () { return supports_; }


      // AbstractInterface
      //
      //
      namespace
      {
        TypeInfo
        abstract_interface_init_ ()
        {
          TypeInfo ti (typeid (AbstractInterface));
          ti.add_base (Access::PUBLIC, true, Interface::static_type_info ());
          return ti;
        }

        TypeInfo abstract_interface_ (abstract_interface_init_ ());
      }

      TypeInfo const& AbstractInterface::
      static_type_info () { return abstract_interface_; }


      // LocalInterface
      //
      //
      namespace
      {
        TypeInfo
        local_interface_init_ ()
        {
          TypeInfo ti (typeid (LocalInterface));
          ti.add_base (Access::PUBLIC, true, Interface::static_type_info ());
          return ti;
        }

        TypeInfo local_interface_ (local_interface_init_ ());
      }

      TypeInfo const& LocalInterface::
      static_type_info () { return local_interface_; }


      // UnconstrainedInterface
      //
      //
      namespace
      {
        TypeInfo
        unconstrained_interface_init_ ()
        {
          TypeInfo ti (typeid (UnconstrainedInterface));
          ti.add_base (Access::PUBLIC, true, Interface::static_type_info ());
          return ti;
        }

        TypeInfo unconstrained_interface_ (unconstrained_interface_init_ ());
      }

      TypeInfo const& UnconstrainedInterface::
      static_type_info () { return unconstrained_interface_; }
    }
  }
}