summaryrefslogtreecommitdiff
path: root/CIAO/CIDLC/UnescapedNamePrinter.hpp
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2007-03-18 22:23:37 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2007-03-18 22:23:37 +0000
commit06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch)
tree8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/CIDLC/UnescapedNamePrinter.hpp
parentd66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff)
downloadATCD-Static_RT_DAnCE.tar.gz
Diffstat (limited to 'CIAO/CIDLC/UnescapedNamePrinter.hpp')
-rw-r--r--CIAO/CIDLC/UnescapedNamePrinter.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/CIAO/CIDLC/UnescapedNamePrinter.hpp b/CIAO/CIDLC/UnescapedNamePrinter.hpp
new file mode 100644
index 00000000000..0b4d31628a4
--- /dev/null
+++ b/CIAO/CIDLC/UnescapedNamePrinter.hpp
@@ -0,0 +1,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