00001 /* -*- C++ -*- */ 00002 // $Id: PSDL_Type_Dcl_Visitor.h 51175 2003-07-21 23:51:40Z dhinton $ 00003 // 00004 // ============================================================================ 00005 // 00006 // = LIBRARY 00007 // PSS 00008 // 00009 // = FILENAME 00010 // PSDL_Type_Dcl_Visitor.h 00011 // 00012 // = AUTHOR 00013 // Priyanka Gontla <gontla_p@ociweb.com> 00014 // 00015 // ============================================================================ 00016 00017 #ifndef TAO_PSDL_TYPE_DCL_VISITOR_H 00018 #define TAO_PSDL_TYPE_DCL_VISITOR_H 00019 00020 #include /**/ "ace/pre.h" 00021 #include "PSDL_Node_Visitor.h" 00022 00023 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00024 # pragma once 00025 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00026 00027 00028 class TAO_PSDL_Type_Dcl_Visitor : public TAO_PSDL_Node_Visitor 00029 { 00030 public: 00031 00032 TAO_PSDL_Type_Dcl_Visitor (); 00033 00034 ~TAO_PSDL_Type_Dcl_Visitor (); 00035 00036 // All type_dcl's except typedef (Refer to PSDL.yy for type_dcl's 00037 int visit_identifier (TAO_PSDL_Identifier *identifier); 00038 00039 // For typedef s 00040 int visit_type_declarator (TAO_PSDL_Type_Declarator *node); 00041 00042 int visit_predefined_type (TAO_PSDL_Predefined_Type *predefined_type); 00043 00044 private: 00045 00046 void print_for_simple_typedefs (void); 00047 00048 void print_for_sequence_typedefs (ACE_CString identifier_type, 00049 ACE_CString identifier); 00050 00051 // Generate the code that should go into the stub implementation 00052 // file for the type_declarators. 00053 void gen_code_for_si (void); 00054 }; 00055 00056 #include /**/ "ace/post.h" 00057 00058 #endif /* TAO_PSDL_TYPE_DCL_VISITOR_H */