summaryrefslogtreecommitdiff
path: root/CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
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/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
parentd66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff)
downloadATCD-06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b.tar.gz
Diffstat (limited to 'CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp')
-rw-r--r--CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp b/CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
new file mode 100644
index 00000000000..ce0c5eb103c
--- /dev/null
+++ b/CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
@@ -0,0 +1,25 @@
+// file : CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
+// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
+// cvs-id : $Id$
+
+#include "CCF/CodeGenerationKit/IndentationIDL.hpp"
+#include "CCF/CodeGenerationKit/IndentationImplanter.hpp"
+
+#include <iostream>
+
+using std::cout;
+using std::endl;
+
+int
+main ()
+{
+ Indentation::Implanter<Indentation::IDL> guard (cout);
+
+ cout << "const string s = \"Hello \\\"world;\";";
+ cout << "const char c1 = \'\\\'\';";
+ cout << "const char c2 = \';\';";
+
+ cout << "interface I {"
+ << "void foo ();"
+ << "};";
+}