blob: 4ace44b22cb7fe834b668d90c24a5495576b8838 (
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
|
// file : odb/processor.cxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// 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.
//
if (ops.database () != database::tracer)
{
auto_ptr<context> ctx (create_context (cerr, unit, ops));
relational::process ();
}
}
catch (operation_failed const&)
{
// Processing failed. Diagnostics has already been issued.
//
throw failed ();
}
}
|