summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Demux/CodeGen/demux.cpp
blob: abd7e6b0151276721e022ce162ee349f0cc4e093 (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
// $Id$
// ============================================================================
//
// = LIBRARY
//    TAO/performance-tests/Demux/CodeGen
//
// = FILENAME
//    demux.cpp
//
//    Main driver program for the code generator
//
// = AUTHOR
//
//    Aniruddha Gokhale
//
// ============================================================================

#include "codegen.h"

ACE_RCSID(CodeGen, demux, "$Id$")

int
main (int argc, char *argv [])
{
  Demux_Test_CodeGenerator demux_cg;

  if (demux_cg.init (argc, argv) == -1)
    {
      ACE_ERROR_RETURN ((LM_ERROR,
                         "(%N:%l) Main : cannot initialize the code generator\n"),
                        -1);
    }

  if (demux_cg.run () == -1)
    {
      ACE_ERROR_RETURN ((LM_ERROR,
                         "(%N:%l) Main : cannot invoke the code generator\n"),
                        -1);
    }

  return 0;
}