3
// field_ch.h,v 1.2 1999/06/07 07:54:07 schmidt Exp
6
// ============================================================================
15
// Visitor generating code for valuetype fields in the valuetype class
19
// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>
20
// derived from be_visitor_union_branch/public_ch.h
22
// ============================================================================
24
#ifndef _BE_VISITOR_VALUETYPE_FIELD_CH_H_
25
#define _BE_VISITOR_VALUETYPE_FIELD_CH_H_
27
class be_visitor_valuetype_field_ch : public be_visitor_decl
31
// be_visitor_field_ch
34
// Visitor generating code for valuetype fields in the valuetype class
38
be_visitor_valuetype_field_ch (be_visitor_context *ctx);
41
~be_visitor_valuetype_field_ch (void);
44
virtual int visit_field (be_field *node);
45
// visit the field node
47
// =visit operations on all possible data types that a valuetype
48
// state member can be.
50
virtual int visit_array (be_array *node);
53
virtual int visit_enum (be_enum *node);
56
virtual int visit_interface (be_interface *node);
57
// visit interface type
59
virtual int visit_interface_fwd (be_interface_fwd *node);
60
// visit interface forward type
62
virtual int visit_valuetype (be_valuetype *node);
63
// visit valuetype type
65
virtual int visit_valuetype_fwd (be_valuetype_fwd *node);
66
// visit valuetype forward type
68
virtual int visit_predefined_type (be_predefined_type *node);
69
// visit predefined type
71
virtual int visit_sequence (be_sequence *node);
72
// visit sequence type
74
virtual int visit_string (be_string *node);
77
virtual int visit_structure (be_structure *node);
78
// visit structure type
80
virtual int visit_typedef (be_typedef *node);
81
// visit typedefed type
83
virtual int visit_union (be_union *node);
86
void setenclosings (const char *pre, const char *post);
87
const char *pre_op ();
88
const char *post_op ();
89
// print additional material around the field (e.g. virtual before)
96
#endif /* _BE_VISITOR_VALUETYPE_FIELD_CH_H_ */