summaryrefslogtreecommitdiff
path: root/CIAO/CIDLC/InterfaceEmitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/CIDLC/InterfaceEmitter.cpp')
-rw-r--r--CIAO/CIDLC/InterfaceEmitter.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/CIAO/CIDLC/InterfaceEmitter.cpp b/CIAO/CIDLC/InterfaceEmitter.cpp
new file mode 100644
index 00000000000..1ce524cdfab
--- /dev/null
+++ b/CIAO/CIDLC/InterfaceEmitter.cpp
@@ -0,0 +1,26 @@
+// file : CIDLC/InterfaceEmitter.cpp
+// author : Jeff Parsons <j.parsons@vanderbilt.edu>
+// cvs-id : $Id$
+
+#include "InterfaceEmitter.hpp"
+
+InterfaceEmitter::InterfaceEmitter (Context& c)
+ : EmitterBase (c)
+{
+}
+
+void
+InterfaceEmitter::traverse (UnconstrainedInterface& i)
+{
+ if (add (i))
+ {
+ Traversal::UnconstrainedInterface::traverse (i);
+ }
+}
+
+bool
+InterfaceEmitter::add (UnconstrainedInterface& i)
+{
+ return interfaces_.insert (&i).second;
+}
+