summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include/fe_obv_header.h
blob: 0dc51b911762fc63218221f667095ba0bf170048 (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
#ifndef FE_OBV_HEADER_H
#define FE_OBV_HEADER_H

#include "fe_interface_header.h"

class AST_ValueType;

// FE_OBVHeader
// Internal class for FE to describe valuetype headers.
//

class TAO_IDL_FE_Export FE_OBVHeader : public FE_InterfaceHeader
{
public:

  FE_OBVHeader (UTL_ScopedName *n,
                UTL_NameList *inherits,
                UTL_NameList *supports,
                bool truncatable,
                bool is_eventtype = false);
  virtual ~FE_OBVHeader ();

  // Data Accessors.
  AST_Type **supports () const;
  long n_supports () const;
  AST_Type *inherits_concrete () const;
  AST_Type *supports_concrete () const;
  bool truncatable () const;

  virtual void destroy ();
  // Destroy anything allocated for this class.

protected:
  // Supported interfaces.
  AST_Type **supports_;
  long n_supports_;

  AST_Type *inherits_concrete_;
  AST_Type *supports_concrete_;

  // Currently ignored.
  bool truncatable_;

protected:
  void compile_inheritance (UTL_NameList *vtypes,
                            bool is_eventtype);
  void compile_supports (UTL_NameList *supports);
  bool check_concrete_supported_inheritance (AST_Interface *d);
};

#endif /* FE_OBV_HEADER_H */