blob: 05d584190ef104b2be1859c3c909f482a0d2161f (
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
52
53
54
55
56
57
58
|
//
// $Id$
//
/* -*- c++ -*- */
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// valuetype_obv_cs.cpp
//
// = DESCRIPTION
// Visitor generating code for Valuetypes
// OBV_ class implementation
// (see C++ mapping OMG 20.17)
//
// = AUTHOR
// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>,
// derived from interface_ch.cpp from Aniruddha Gokhale
//
// ============================================================================
#ifndef _BE_VALUETYPE_VALUETYPE_OBV_CS_H_
#define _BE_VALUETYPE_VALUETYPE_OBV_CS_H_
class be_visitor_valuetype_obv_cs : public be_visitor_valuetype
{
//
// = TITLE
// be_visitor_valuetype_obv_cs
//
// = DESCRIPTION
// This is a concrete visitor to generate the implementation for valuetype
// OBV_ class
//
public:
be_visitor_valuetype_obv_cs (be_visitor_context *ctx);
// constructor
~be_visitor_valuetype_obv_cs (void);
// destructor
virtual int visit_valuetype (be_valuetype *node);
virtual int visit_eventtype (be_eventtype *node);
virtual int visit_field (be_field *node);
private:
void gen_obv_init_constructor_inits (be_valuetype *node);
// Generate member assignments for the initializing constructor.
void gen_obv_init_base_constructor_args (be_valuetype *node,
unsigned long &index);
// Called by method above to generate base class constructor call.
};
#endif /* _BE_VALUETYPE_VALUETYPE_OBV_CS_H_ */
|