summaryrefslogtreecommitdiff
path: root/trunk/CIAO/CCF/Example/IDL2/CxxMapping/Generator.hpp
blob: 4e231267dae6debe0db236f72f75857bca3fb854 (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      : Example/IDL2/CxxMapping/Generator.hpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#ifndef EXAMPLE_IDL2_CXX_MAPPING_GENERATOR_HPP
#define EXAMPLE_IDL2_CXX_MAPPING_GENERATOR_HPP

#include <memory>

#include "CCF/IDL2/SemanticGraph.hpp"

namespace IDL2
{
  class GeneratorImpl;

  class Generator
  {
  public:
    ~Generator ();
    Generator ();

    void
    generate (CCF::IDL2::SemanticGraph::TranslationUnit& tu);

  protected:
    Generator (GeneratorImpl&);

  protected:
    std::auto_ptr<GeneratorImpl> pimpl_;
    GeneratorImpl& impl_;
  };
}

#endif  // EXAMPLE_IDL2_CXX_MAPPING_GENERATOR_HPP