summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_module
diff options
context:
space:
mode:
authorgokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 13:03:02 +0000
committergokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 13:03:02 +0000
commit57fd58d77cd96da2b3a7d38b6fdb9f4442554905 (patch)
tree5ca8c196f359f7d4abd86490a5d7fd83e5e36330 /TAO/TAO_IDL/be_include/be_visitor_module
parentbf5eca3c6028196adf55b0b74a380cd37c637d0d (diff)
downloadATCD-57fd58d77cd96da2b3a7d38b6fdb9f4442554905.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_visitor_module')
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/any_op.h49
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module.h74
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h48
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h48
4 files changed, 219 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h
new file mode 100644
index 00000000000..ab941bc345b
--- /dev/null
+++ b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h
@@ -0,0 +1,49 @@
+/* -*- c++ -*- */
+//
+// $Id$
+//
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// any_op.h
+//
+// = DESCRIPTION
+// Concrete visitor for the Module class
+// This one provides visitors to generate the Any operators for elements in
+// the Module's scope.
+//
+// = AUTHOR
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+#if !defined (_BE_VISITOR_MODULE_ANY_OP_H_)
+#define _BE_VISITOR_MODULE_ANY_OP_H_
+
+class be_visitor_module_any_op : public be_visitor_module
+{
+ //
+ // = TITLE
+ // be_visitor_module_any_op
+ //
+ // = DESCRIPTION
+ // This is a concrete visitor for module that generates the Any operator
+ // declarations and implementations
+ //
+
+public:
+ be_visitor_module_any_op (be_visitor_context *ctx);
+ // constructor
+
+ ~be_visitor_module_any_op (void);
+ // destructor
+
+ virtual int visit_module (be_module *node);
+ // visit module
+};
+
+#endif /* _BE_VISITOR_MODULE_ANY_OP_H_ */
diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module.h b/TAO/TAO_IDL/be_include/be_visitor_module/module.h
new file mode 100644
index 00000000000..58c4f951cb8
--- /dev/null
+++ b/TAO/TAO_IDL/be_include/be_visitor_module/module.h
@@ -0,0 +1,74 @@
+/* -*- c++ -*- */
+//
+// $Id$
+//
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// module.h
+//
+// = DESCRIPTION
+// Concrete visitor for the Module class
+// This one provides the generic visitor for the Module node.
+//
+// = AUTHOR
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+#if !defined (_BE_VISITOR_MODULE_MODULE_H_)
+#define _BE_VISITOR_MODULE_MODULE_H_
+
+class be_visitor_module : public be_visitor_scope
+{
+ //
+ // = TITLE
+ // be_visitor_module
+ //
+ // = DESCRIPTION
+ // This is a concrete visitor for module that abstracts all common tasks
+ //
+
+public:
+ be_visitor_module (be_visitor_context *ctx);
+ // constructor
+
+ ~be_visitor_module (void);
+ // destructor
+
+ // =visit methods on all elements syntactically valid in a Module scope
+
+ virtual int visit_constant (be_constant *node);
+ // visit a constant
+
+ virtual int visit_enum (be_enum *node);
+ // visit an enum
+
+ virtual int visit_exception (be_exception *node);
+ // visit an exception
+
+ virtual int visit_interface (be_interface *node);
+ // visit an interface
+
+ virtual int visit_interface_fwd (be_interface_fwd *node);
+ // visit an interface
+
+ virtual int visit_module (be_module *node);
+ // visit a module
+
+ virtual int visit_structure (be_structure *node);
+ // visit a structure
+
+ virtual int visit_union (be_union *node);
+ // visit a union
+
+ virtual int visit_typedef (be_typedef *node);
+ // visit the typedef node
+
+};
+
+#endif /* _BE_VISITOR_MODULE_MODULE_H_ */
diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h
new file mode 100644
index 00000000000..f001d3e4900
--- /dev/null
+++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h
@@ -0,0 +1,48 @@
+/* -*- c++ -*- */
+//
+// $Id$
+//
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// module_ch.h
+//
+// = DESCRIPTION
+// Concrete visitor for the Module class
+// This provides code generation for the module in the client header.
+//
+// = AUTHOR
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+#if !defined (_BE_VISITOR_MODULE_MODULE_CH_H_)
+#define _BE_VISITOR_MODULE_MODULE_CH_H_
+
+class be_visitor_module_ch : public be_visitor_module
+{
+ //
+ // = TITLE
+ // be_visitor_module_ch
+ //
+ // = DESCRIPTION
+ // This is a concrete visitor to generate the client header for module
+ //
+ //
+public:
+ be_visitor_module_ch (be_visitor_context *ctx);
+ // constructor
+
+ ~be_visitor_module_ch (void);
+ // destructor
+
+ virtual int visit_module (be_module *node);
+ // visit module. We provide code for this method in the derived class
+
+};
+
+#endif /* _BE_VISITOR_MODULE_MODULE_CH_H_ */
diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h
new file mode 100644
index 00000000000..0ee2c25379c
--- /dev/null
+++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h
@@ -0,0 +1,48 @@
+/* -*- c++ -*- */
+//
+// $Id$
+//
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// module_sh.h
+//
+// = DESCRIPTION
+// Concrete visitor for the Module class
+// This provides code generation for the module in the server header.
+//
+// = AUTHOR
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+#if !defined (_BE_VISITOR_MODULE_MODULE_SH_H_)
+#define _BE_VISITOR_MODULE_MODULE_SH_H_
+
+class be_visitor_module_sh : public be_visitor_module
+{
+ //
+ // = TITLE
+ // be_visitor_module_sh
+ //
+ // = DESCRIPTION
+ // This is a concrete visitor to generate the server header for module
+ //
+ //
+public:
+ be_visitor_module_sh (be_visitor_context *ctx);
+ // constructor
+
+ ~be_visitor_module_sh (void);
+ // destructor
+
+ virtual int visit_module (be_module *node);
+ // visit module. We provide code for this method in the derived class
+
+};
+
+#endif /* _BE_VISITOR_MODULE_MODULE_SH_H_ */