summaryrefslogtreecommitdiff
path: root/modules/CIAO/CIDLC/UnescapedNamePrinter.hpp
blob: 0b4d31628a4bcd62e914c0a8f90398f6760a8605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// file      : CIDLC/UnescapedNamePrinter.hpp
// author    : Boris Kolpackov <boris@codesynthesis.com>
// cvs-id    : $Id: Collectors.hpp 55138 2004-01-05 07:53:05Z parsons $

#ifndef UNESCAPED_NAME_PRINTER_HPP
#define UNESCAPED_NAME_PRINTER_HPP

#include "CCF/IDL2/SemanticGraph/Name.hpp"

#include <ostream>

// Prints names in the unescaped form.
//
struct UnescapedNamePrinter: CCF::IDL2::SemanticGraph::NamePrinter
{
  virtual void
  print (std::ostream& os, CCF::IDL2::SemanticGraph::SimpleName const& n)
  {
    os << n.unescaped_str ();
  }
};

#endif // UNESCAPED_NAME_PRINTER_HPP