summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_context.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-17 20:56:05 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-17 20:56:05 +0000
commitec09a49404ec8bed5643ef96c2e519fb113888ee (patch)
tree009f04dc8b733ba7a545ee4dc91934b77c5e2dcd /TAO/TAO_IDL/be/be_visitor_context.cpp
parent493c96b15b8e9944731dec8f08952056f2c9a72c (diff)
downloadATCD-ec09a49404ec8bed5643ef96c2e519fb113888ee.tar.gz
ChangeLogTag:Mon Aug 17 15:10:25 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_context.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_context.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp
index 57d8b991bae..9d6d7e342ba 100644
--- a/TAO/TAO_IDL/be/be_visitor_context.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_context.cpp
@@ -35,7 +35,8 @@ be_visitor_context::be_visitor_context (void)
tdef_ (0),
attr_ (0),
exception_ (0),
- comma_ (0)
+ comma_ (0),
+ interface_ (0)
{
}
@@ -48,7 +49,8 @@ be_visitor_context::be_visitor_context (const be_visitor_context &ctx)
tdef_ (ctx.tdef_),
attr_ (ctx.attr_),
exception_ (ctx.exception_),
- comma_ (ctx.comma_)
+ comma_ (ctx.comma_),
+ interface_ (ctx.interface_)
{
}
@@ -64,6 +66,7 @@ be_visitor_context::operator= (const be_visitor_context &ctx)
this->attr_ = ctx.attr_;
this->exception_ = ctx.exception_;
this->comma_ = ctx.comma_;
+ this->interface_ = ctx.interface_;
return *this;
}
@@ -198,6 +201,20 @@ be_visitor_context::comma (void)
return this->comma_;
}
+void
+be_visitor_context::interface (be_interface *interface)
+{
+ this->interface_ = interface;
+}
+
+be_interface *
+be_visitor_context::interface (void) const
+{
+ return this->interface_;
+}
+
+// ****************************************************************
+
// return the node as argument if possible
be_argument *
be_visitor_context::be_node_as_argument (void)