blob: 1313ac9ed87c4805a0f44f0c1b8d4c962935dc91 (
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
81
82
83
|
/* -*- c++ -*- */
//=============================================================================
/**
* @file be_global.h
*
* Header file for class containing compiler back end global data.
*
*
* @author Jeff Parsons <parsons@cs.wustl.edu>
*/
//=============================================================================
#ifndef TAO_IFR_BE_GLOBAL_H
#define TAO_IFR_BE_GLOBAL_H
#include "CIAO_IDL3_TO_XMI_Export.h"
#include "idl_defines.h"
#include "ace/SString.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// Defines a class containing all back end global data.
/**
* Storage of global data specific to the compiler back end
*/
class CIAO_IDL3_TO_XMI_Export BE_GlobalData
{
public:
/// Constructor.
BE_GlobalData (void);
/// Destructor.
virtual ~BE_GlobalData (void);
// Data accessors.
bool ir_filter (void) const;
void ir_filter (bool flag);
const char *filename (void) const;
void filename (char *fname);
const char* output_dir (void) const;
void output_dir (const char* s);
const char * dtd (void) const;
void dtd (const char *s);
bool local_only (void) const;
void local_only (bool);
/// Parse args that affect the backend.
void parse_args (long &i, char **av);
/// Cleanup.
void destroy (void);
private:
bool ir_filter_;
/// Name of the IDL file we are processing.
char *filename_;
/**
* Directory where the generated file is to be
* kept. Default value is 0 for this string which means the current
* directory from which the <tao_picml> is called.
*/
char *output_dir_;
/// full path to dtd to be used.
ACE_CString dtd_;
/// generate xmi for local entities only
bool local_only_;
};
#endif /* TAO_IFR_BE_GLOBAL_H */
|