summaryrefslogtreecommitdiff
path: root/CIAO/CIDLC/CxxNamePrinter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/CIDLC/CxxNamePrinter.hpp')
-rw-r--r--CIAO/CIDLC/CxxNamePrinter.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/CIAO/CIDLC/CxxNamePrinter.hpp b/CIAO/CIDLC/CxxNamePrinter.hpp
new file mode 100644
index 00000000000..417dfa16a9f
--- /dev/null
+++ b/CIAO/CIDLC/CxxNamePrinter.hpp
@@ -0,0 +1,18 @@
+// file : CIDLC/CxxNamePrinter.hpp
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// cvs-id : $Id: Collectors.hpp 55138 2004-01-05 07:53:05Z parsons $
+
+#ifndef CXX_NAME_PRINTER_HPP
+#define CXX_NAME_PRINTER_HPP
+
+#include "CCF/IDL2/SemanticGraph/Name.hpp"
+
+// Prints names while escaping C++ keywords with the _cxx_ prefix.
+//
+struct CxxNamePrinter: CCF::IDL2::SemanticGraph::NamePrinter
+{
+ virtual void
+ print (std::ostream&, CCF::IDL2::SemanticGraph::SimpleName const&);
+};
+
+#endif // CXX_NAME_PRINTER_HPP