summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.h')
-rw-r--r--ACE/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.h b/ACE/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.h
new file mode 100644
index 00000000000..936167922c1
--- /dev/null
+++ b/ACE/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.h
@@ -0,0 +1,65 @@
+/* -*- C++ -*- */
+// $Id$
+//
+// ============================================================================
+//
+// = LIBRARY
+// PSS
+//
+// = FILENAME
+// PSDL_Interface_Visitor.h
+//
+// = DESCRIPTION
+// Visitor class for the generated code for interfaces.
+//
+// = AUTHOR
+// Priyanka Gontla <gontla_p@ociweb.com>
+//
+// ============================================================================
+
+#ifndef TAO_PSDL_INTERFACE_VISITOR_H
+#define TAO_PSDL_INTERFACE_VISITOR_H
+
+#include /**/ "ace/pre.h"
+
+#include "PSDL_Node_Visitor.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TAO_PSDL_Interface_Visitor : public TAO_PSDL_Node_Visitor
+{
+ public:
+
+ TAO_PSDL_Interface_Visitor ();
+
+ ~TAO_PSDL_Interface_Visitor ();
+
+ // Override the necessary methods for interfaces (including forward
+ // declarations).
+ int visit_identifier (TAO_PSDL_Identifier *identifier);
+
+ int visit_forward_dcl (TAO_PSDL_Forward_Dcl *forward_dcl);
+
+ int visit_interface_dcl (TAO_PSDL_Interface_Dcl *interface_dcl);
+
+ int visit_interface_header (TAO_PSDL_Interface_Header *interface_header);
+
+ // Generate the code that should go into the stub implementation
+ // file for the type_declarators.
+ void gen_code_for_si (void);
+
+ private:
+
+ void print_for_forward_dcl (void);
+ void print_class_for_interface (void);
+ void print_end_for_interface (void);
+
+ CORBA::Boolean forward_dcl_;
+ ACE_CString interface_name_;
+};
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_PSDL_INTERFACE_VISITOR_H */