OpenDDS  Snapshot(2023/04/28-20:55)
be_util.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 
3 //=============================================================================
4 /**
5  * @file be_util.h
6  *
7  *
8  * Static helper methods used by multiple visitors.
9  *
10  *
11  * @author Gary Maxey
12  * @author Jeff Parsons
13  */
14 //=============================================================================
15 
16 #ifndef OPENDDS_IDL_BE_UTIL_H
17 #define OPENDDS_IDL_BE_UTIL_H
18 
19 #include <string>
20 
21 class AST_Generator;
22 class AST_Decl;
23 
24 namespace be_util {
25 
26  /// Special BE arg call factored out of DRV_args.
27  void prep_be_arg(char* s);
28 
29  /// Checks made after parsing args.
30  void arg_post_proc();
31 
32  /// Display usage of BE-specific options.
33  void usage();
34 
35  /// Create an AST node generator.
36  AST_Generator* generator_init();
37 
38  /// Get DDS_ROOT. It is a fatal error if it wasn't set.
39  const char* dds_root();
40 
41  /// Report a miscellaneous error and abort.
42  void misc_error_and_abort(const std::string& message, AST_Decl* node = 0);
43 };
44 
45 #endif // if !defined
static TAO_IFR_BE_Export AST_Generator * generator_init(void)
Definition: be_util.cpp:160
static TAO_IFR_BE_Export void arg_post_proc(void)
Definition: be_util.cpp:93
static TAO_IFR_BE_Export void prep_be_arg(char *s)
Definition: be_util.cpp:25
const char * dds_root()
Get DDS_ROOT. It is a fatal error if it wasn&#39;t set.
static TAO_IFR_BE_Export void usage(void)
Definition: be_util.cpp:98
void misc_error_and_abort(const std::string &message, AST_Decl *node=0)
Report a miscellaneous error and abort.