summaryrefslogtreecommitdiff
path: root/TAO/CIAO/CCF/CCF/IDL3/SyntaxTree/EventType.hpp
blob: dd0c3b937361c5ecada572785761eeeed45c8500 (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
// file      : CCF/IDL3/SyntaxTree/EventType.hpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#ifndef CCF_IDL3_SYNTAX_TREE_EVENT_TYPE_HPP
#define CCF_IDL3_SYNTAX_TREE_EVENT_TYPE_HPP

#include "CCF/IDL2/SyntaxTree/ValueType.hpp"

namespace CCF
{
  namespace IDL3
  {
    namespace SyntaxTree
    {
      // Import nodes from IDL2
      using namespace IDL2::SyntaxTree;


      //
      //
      //
      class EventTypeDecl : public virtual ValueTypeDecl
      {
      protected:
        virtual
        ~EventTypeDecl () throw () {}

        EventTypeDecl ()
        {
          type_info (static_type_info ());
        }

        // Runtime declaration type information
      public:
        virtual std::string
        declaration_class ()
        {
          return "event type";
        }

      public:
        static Introspection::TypeInfo const&
        static_type_info ();
      };

      typedef
      StrictPtr<EventTypeDecl>
      EventTypeDeclPtr;


      //
      //
      //
      class EventTypeForwardDecl : public virtual ValueTypeForwardDecl,
                                   public virtual EventTypeDecl
      {
      protected:
        virtual
        ~EventTypeForwardDecl () throw () {}

        EventTypeForwardDecl ()
        {
          type_info (static_type_info ());
        }

        // Runtime declaration type information
      public:
        virtual std::string
        declaration_class ()
        {
          return "event type";
        }

      public:
        static Introspection::TypeInfo const&
        static_type_info ();
      };


      //
      //
      //
      class EventTypeDef : public virtual EventTypeDecl,
                           public virtual ValueTypeDef
      {
      protected:
        virtual
        ~EventTypeDef () throw () {}

        EventTypeDef ()
        {
          type_info (static_type_info ());
        }

        // Runtime declaration type information
      public:
        virtual std::string
        declaration_class ()
        {
          return "event type";
        }

      public:
        static Introspection::TypeInfo const&
        static_type_info ();
      };


      //
      //
      //
      class ConcreteEventTypeDecl : public virtual EventTypeDecl
      {
      protected:
        virtual
        ~ConcreteEventTypeDecl () throw () {}

        ConcreteEventTypeDecl ()
        {
          type_info (static_type_info ());
        }

        // Runtime declaration type information
      public:
        virtual std::string
        declaration_class ()
        {
          return "concrete event type";
        }

      public:
        static Introspection::TypeInfo const&
        static_type_info ();
      };


      //
      //
      //
      class ConcreteEventTypeDef : public virtual ConcreteEventTypeDecl,
                                   public virtual EventTypeDef
      {
      public:
        virtual
        ~ConcreteEventTypeDef () throw () {}

        ConcreteEventTypeDef (SimpleName const& name,
                              ScopePtr const& scope,
                              ScopedNameSet const& inherits)
            : Declaration (name, scope),
              ValueTypeDef (inherits)
        {
          type_info (static_type_info ());
        }

        // Runtime declaration type information
      public:
        virtual std::string
        declaration_class ()
        {
          return "concrete event type";
        }

      public:
        static Introspection::TypeInfo const&
        static_type_info ();
      };

      typedef
      StrictPtr<ConcreteEventTypeDef>
      ConcreteEventTypeDefPtr;

      typedef
      DeclarationOrderComparator<ConcreteEventTypeDefPtr>
      ConcreteEventTypeDefOrderComparator;

      typedef
      std::set<ConcreteEventTypeDefPtr, ConcreteEventTypeDefOrderComparator>
      ConcreteEventTypeDefSet;
    }
  }
}

#endif  // CCF_IDL3_SYNTAX_TREE_EVENT_TYPE_HPP