summaryrefslogtreecommitdiff
path: root/trunk/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Include.cpp
blob: 5fcbe4a0c318e71fa745b36580bede455a8583a2 (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
// file      : CCF/IDL2/SemanticAction/Impl/Include.cpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#include "CCF/IDL2/SemanticAction/Impl/Include.hpp"

#include <iostream>

using std::cerr;
using std::endl;

namespace CCF
{
  namespace IDL2
  {
    namespace SemanticAction
    {
      namespace Impl
      {
        // @@ This is left unimplemented for now. Later, code from
        // IDL3 should be copied here. Or better yet this implementation
        // should allow customization via overriding.
        //
        Include::
        Include (Context& c)
            : ctx (c)
        {
        }

        void Include::
        quote (StringLiteralPtr const& sl)
        {
          if (ctx.trace ()) cerr << "__qinclude " << sl << endl;
        }

        void Include::
        bracket (StringLiteralPtr const& sl)
        {
          if (ctx.trace ()) cerr << "__binclude " << sl << endl;
        }

        void Include::
        end ()
        {
          if (ctx.trace ()) cerr << "end" << endl;
        }
      }
    }
  }
}