summaryrefslogtreecommitdiff
path: root/modules/CIAO/CIDLC/EmitterContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/CIDLC/EmitterContext.cpp')
-rw-r--r--modules/CIAO/CIDLC/EmitterContext.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/modules/CIAO/CIDLC/EmitterContext.cpp b/modules/CIAO/CIDLC/EmitterContext.cpp
new file mode 100644
index 00000000000..478ae5d0027
--- /dev/null
+++ b/modules/CIAO/CIDLC/EmitterContext.cpp
@@ -0,0 +1,45 @@
+// file : CIDLC/EmitterContext.cpp
+// author : Jeff Parsons <j.parsons@vanderbilt.edu>
+// cvs-id : $Id$
+
+#include "EmitterContext.hpp"
+
+Context::Context (ostream& os,
+ string export_macro,
+ CommandLine const& cl)
+ : os_ (os),
+ export_macro_ (export_macro),
+ cl_ (cl)
+{
+}
+
+ostream&
+Context::os (void)
+{
+ return os_;
+}
+
+string
+Context::export_macro (void)
+{
+ return export_macro_;
+}
+
+CommandLine const&
+Context::cl (void)
+{
+ return cl_;
+}
+
+string
+Context::composition_name (void)
+{
+ return composition_name_;
+}
+
+void
+Context::composition_name (const string& name)
+{
+ composition_name_ = name;
+}
+