blob: 7152e91084140f0d9699e53820102446854209b4 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/* -*- c++ -*- */
//=============================================================================
/**
* @file be_util.h
*
* $Id$
*
* Static helper methods used by multiple visitors.
*
*
* @author Gary Maxey
* @author Jeff Parsons
*/
//=============================================================================
#ifndef TAO_BE_UTIL_H
#define TAO_BE_UTIL_H
#include "TAO_IDL_BE_Export.h"
class TAO_OutStream;
class be_module;
class be_type;
class AST_Decl;
class AST_Generator;
class be_util
{
public:
static void
gen_nested_namespace_begin (TAO_OutStream *os,
be_module *node,
bool skel = false);
static void
gen_nested_namespace_end (TAO_OutStream *os,
be_module *node);
static void
gen_nesting_open (TAO_OutStream &os,
AST_Decl *node);
static void
gen_nesting_close (TAO_OutStream &os,
AST_Decl *node);
/// Special BE arg call factored out of DRV_args.
static TAO_IDL_BE_Export void
prep_be_arg (char *s);
/// Checks made after parsing args.
static TAO_IDL_BE_Export void
arg_post_proc (void);
/// Display usage of BE-specific options.
static TAO_IDL_BE_Export void
usage (void);
/// Create an AST node generator.
static TAO_IDL_BE_Export AST_Generator *
generator_init (void);
/// Called from various places.
static const char *
get_output_path (bool for_anyop, bool for_skel, bool for_exec);
static const char *
get_complete_file_name (bool for_exec);
/// Called from various places.
static bool
overwrite_ciao_exec_files (void);
// Called by each node upon construction.
static void set_arg_seen_bit (be_type *);
};
#endif // if !defined
|