summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include/fe_home_header.h
blob: ae13bc609cc33ac7523d6a68760fc6e42e56c3ab (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
#ifndef FE_HOME_HEADER_H
#define FE_HOME_HEADER_H

#include "fe_component_header.h"

class AST_Home;
class AST_ValueType;

// FE_HomeHeader
// Internal class for FE to describe component home headers

// We use the 'base_component' member of the base class to
// store the 'managed_component' member of the derived class.
// By inheriting from FE_ComponentHeader, we also get the
// reuse of the mechanism described in the comment above
// for handling the supported interface list.
class FE_HomeHeader : public FE_ComponentHeader
{
public:
  FE_HomeHeader (UTL_ScopedName *n,
                 UTL_ScopedName *base_home,
                 UTL_NameList *supports,
                 UTL_ScopedName *managed_component,
                 UTL_ScopedName *primary_key);

  virtual ~FE_HomeHeader ();

  // Data Accessors.
  AST_Home *base_home () const;
  AST_Component *managed_component () const;
  AST_Type *primary_key () const;

protected:
  AST_Home *base_home_;
  AST_Component *managed_component_;
  AST_Type *primary_key_;

protected:
  void compile_inheritance (UTL_ScopedName *base_home);
  void compile_managed_component (UTL_ScopedName *managed_compoent);
  void compile_primary_key (UTL_ScopedName *primary_key);
};

#endif /* FE_HOME_HEADER_H */