PSDL_Interface_Visitor.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // PSDL_Interface_Visitor.h,v 1.2 2003/07/21 23:51:30 dhinton Exp
00003 //
00004 // ============================================================================
00005 //
00006 // = LIBRARY
00007 //    PSS
00008 //
00009 // = FILENAME
00010 //    PSDL_Interface_Visitor.h
00011 //
00012 // = DESCRIPTION
00013 //    Visitor class for the generated code for interfaces.
00014 //
00015 // = AUTHOR
00016 //    Priyanka Gontla <gontla_p@ociweb.com>
00017 //
00018 // ============================================================================
00019 
00020 #ifndef TAO_PSDL_INTERFACE_VISITOR_H
00021 #define TAO_PSDL_INTERFACE_VISITOR_H
00022 
00023 #include /**/ "ace/pre.h"
00024 
00025 #include "PSDL_Node_Visitor.h"
00026 
00027 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00028 # pragma once
00029 #endif /* ACE_LACKS_PRAGMA_ONCE */
00030 
00031 class TAO_PSDL_Interface_Visitor : public TAO_PSDL_Node_Visitor
00032 {
00033  public:
00034 
00035   TAO_PSDL_Interface_Visitor ();
00036 
00037   ~TAO_PSDL_Interface_Visitor ();
00038 
00039   // Override the necessary methods for interfaces (including forward
00040   // declarations).
00041   int visit_identifier (TAO_PSDL_Identifier *identifier);
00042 
00043   int visit_forward_dcl (TAO_PSDL_Forward_Dcl *forward_dcl);
00044 
00045   int visit_interface_dcl (TAO_PSDL_Interface_Dcl *interface_dcl);
00046 
00047   int visit_interface_header (TAO_PSDL_Interface_Header *interface_header);
00048 
00049   // Generate the code that should go into the stub implementation
00050   // file for the type_declarators.
00051   void gen_code_for_si (void);
00052 
00053  private:
00054 
00055   void print_for_forward_dcl (void);
00056   void print_class_for_interface (void);
00057   void print_end_for_interface (void);
00058 
00059   CORBA::Boolean forward_dcl_;
00060   ACE_CString interface_name_;
00061 };
00062 
00063 #include /**/ "ace/post.h"
00064 
00065 #endif /* TAO_PSDL_INTERFACE_VISITOR_H */

Generated on Thu Nov 9 14:07:02 2006 for TAO_PSS by doxygen 1.3.6