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

#ifndef CCF_IDL2_SYNTAX_TREE_MODULE_HPP
#define CCF_IDL2_SYNTAX_TREE_MODULE_HPP

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

namespace CCF
{
  namespace IDL2
  {
    namespace SyntaxTree
    {
      // Module
      //
      //
      class Module : public virtual Scope
      {
      public:
        virtual
        ~Module () throw () {}

        Module (SimpleName const& name, ScopePtr const& scope)
            : Declaration (name, scope)
        {
          type_info (static_type_info ());
        }

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

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

      typedef
      StrictPtr<Module>
      ModulePtr;
    }
  }
}

#endif  // CCF_IDL2_SYNTAX_TREE_MODULE_HPP