summaryrefslogtreecommitdiff
path: root/CIAO/tools/IDL3_to_XMI/be_util.cpp
blob: 9b0badcdbacd14034844c63617d6f78806476e80 (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

//=============================================================================
/**
 *  @file    be_util.cpp
 *
 *  $Id$
 *
 *  Static helper methods used by multiple visitors.
 *
 *
 *  @author Jeff Parsons
 */
//=============================================================================

#include "be_util.h"
#include "be_extern.h"

#include "ast_generator.h"

#include "ace/Log_Msg.h"

// Prepare an argument for a BE.
void
be_util::prep_be_arg (char *)
{
}

void
be_util::arg_post_proc (void)
{
}

void
be_util::usage (void)
{
  ACE_DEBUG ((LM_DEBUG,
              ACE_TEXT (" -f\t\t\tsimulates IFR type filtering on included types\n")
              ));
  ACE_DEBUG ((LM_DEBUG,
              ACE_TEXT (" -od <dir>\t\toutput directory for the generated file ")
              ACE_TEXT ("(default is current directory)\n")
              ));
  ACE_DEBUG ((LM_DEBUG,
              ACE_TEXT (" -of <dir>\t\toutput file for the generated XMI ")
              ACE_TEXT ("(default for example.idl is example.xmi)\n")
              ));
  ACE_DEBUG ((LM_DEBUG,
              ACE_TEXT (" -xd <dtd_file>\t\tfull path to XMI dtd file to include in generated file ")
              ACE_TEXT ("(default is XMI.dtd)\n")
              ));
  ACE_DEBUG ((LM_DEBUG,
              ACE_TEXT (" -n\t\t\texports XMI for non-local entities\n")
              ));
}

AST_Generator *
be_util::generator_init (void)
{
  AST_Generator *gen = 0;
  ACE_NEW_RETURN (gen,
                  AST_Generator,
                  0);
  return gen;
}