summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include/ast_consumes.h
blob: df6f3b0fe9fe0a1637b0aad8b9e47ad3edf2f49b (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
// -*- C++ -*-
// $Id$

#ifndef AST_CONSUMES_H
#define AST_CONSUMES_H

#include "ast_field.h"

class AST_EventType;

class TAO_IDL_FE_Export AST_Consumes : public virtual AST_Field
{
public:
  AST_Consumes (UTL_ScopedName *n,
                AST_Type *consumes_type);
            
  virtual ~AST_Consumes (void);
  
  // Data Accessor.
  AST_Type *consumes_type (void) const;

  // Narrowing.
  DEF_NARROW_FROM_DECL(AST_Consumes);

  // AST Dumping.
  virtual void dump (ACE_OSTREAM_TYPE &o);

  // Visiting.
  virtual int ast_accept (ast_visitor *visitor);
  
  // Cleanup.
  virtual void destroy (void);

  static AST_Decl::NodeType const NT;
};

#endif // AST_CONSUMES_H