aboutsummaryrefslogtreecommitdiff
path: root/odb/processor.cxx
blob: 96ab4ae6be060adb39920587321ba51a13685e52 (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
// file      : odb/processor.cxx
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
// license   : GNU GPL v3; see accompanying LICENSE file

#include <iostream>

#include <odb/context.hxx>
#include <odb/processor.hxx>

#include <odb/relational/processor.hxx>

using namespace std;

void processor::
process (options const& ops, semantics::unit& unit, semantics::path const&)
{
  try
  {
    // Process types.
    //
    auto_ptr<context> ctx (create_context (cerr, unit, ops, 0));
    relational::process ();
  }
  catch (operation_failed const&)
  {
    // Processing failed. Diagnostics has already been issued.
    //
    throw failed ();
  }
}