summaryrefslogtreecommitdiff
path: root/CIAO/CCF/CCF/IDL3/SemanticGraph/Component.cpp
blob: da8d0dde24bea49c7037ad2f180070549abcadc5 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// file      : CCF/IDL3/SemanticGraph/Component.cpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#include "CCF/IDL3/SemanticGraph/EventType.hpp"
#include "CCF/IDL3/SemanticGraph/Component.hpp"

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

      // Provider
      //
      //
      namespace
      {
        TypeInfo
        provider_init_ ()
        {
          TypeInfo ti (typeid (Provider));
          ti.add_base (Access::PUBLIC, true, Nameable::static_type_info ());
          ti.add_base (Access::PUBLIC, true, Instance::static_type_info ());
          return ti;
        }

        TypeInfo provider_ (provider_init_ ());
      }

      TypeInfo const& Provider::
      static_type_info () { return provider_; }


      // User
      //
      //
      namespace
      {
        TypeInfo
        user_init_ ()
        {
          TypeInfo ti (typeid (User));
          ti.add_base (Access::PUBLIC, true, Nameable::static_type_info ());
          ti.add_base (Access::PUBLIC, true, Instance::static_type_info ());
          return ti;
        }

        TypeInfo user_ (user_init_ ());
      }

      TypeInfo const& User::
      static_type_info () { return user_; }

      User::
      ~User ()
      {
      }


      // MultiUser
      //
      //
      namespace
      {
        TypeInfo
        multi_user_init_ ()
        {
          TypeInfo ti (typeid (MultiUser));
          ti.add_base (Access::PUBLIC, true, User::static_type_info ());
          return ti;
        }

        TypeInfo multi_user_ (multi_user_init_ ());
      }

      TypeInfo const& MultiUser::
      static_type_info () { return multi_user_; }


      // SingleUser
      //
      //
      namespace
      {
        TypeInfo
        single_user_init_ ()
        {
          TypeInfo ti (typeid (SingleUser));
          ti.add_base (Access::PUBLIC, true, User::static_type_info ());
          return ti;
        }

        TypeInfo single_user_ (single_user_init_ ());
      }

      TypeInfo const& SingleUser::
      static_type_info () { return single_user_; }

      // Publisher
      //
      //
      namespace
      {
        TypeInfo
        publisher_init_ ()
        {
          TypeInfo ti (typeid (Publisher));
          ti.add_base (Access::PUBLIC, true, Nameable::static_type_info ());
          ti.add_base (Access::PUBLIC, true, Instance::static_type_info ());
          return ti;
        }

        TypeInfo publisher_ (publisher_init_ ());
      }

      TypeInfo const& Publisher::
      static_type_info () { return publisher_; }


      // Emitter
      //
      //
      namespace
      {
        TypeInfo
        emitter_init_ ()
        {
          TypeInfo ti (typeid (Emitter));
          ti.add_base (Access::PUBLIC, true, Nameable::static_type_info ());
          ti.add_base (Access::PUBLIC, true, Instance::static_type_info ());
          return ti;
        }

        TypeInfo emitter_ (emitter_init_ ());
      }

      TypeInfo const& Emitter::
      static_type_info () { return emitter_; }


      // Consumer
      //
      //
      namespace
      {
        TypeInfo
        consumer_init_ ()
        {
          TypeInfo ti (typeid (Consumer));
          ti.add_base (Access::PUBLIC, true, Nameable::static_type_info ());
          ti.add_base (Access::PUBLIC, true, Instance::static_type_info ());
          return ti;
        }

        TypeInfo consumer_ (consumer_init_ ());
      }

      TypeInfo const& Consumer::
      static_type_info () { return consumer_; }


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

        TypeInfo component_ (component_init_ ());
      }

      TypeInfo const& Component::
      static_type_info () { return component_; }
    }
  }
}