blob: 7f276821639ab1cd35649c78e02af712c9bee88f (
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
|
// $Id$
#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 (void);
// Data Accessors.
AST_Home *base_home (void) const;
AST_Component *managed_component (void) const;
AST_Type *primary_key (void) 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 */
|