00001 /* -*- C++ -*- */ 00002 // $Id: PSDL_Enum_Type_Visitor.h 51175 2003-07-21 23:51:40Z dhinton $ 00003 // 00004 // ============================================================================ 00005 // 00006 // = LIBRARY 00007 // PSS 00008 // 00009 // = FILENAME 00010 // PSDL_Enum_Type_Visitor.h 00011 // 00012 // = DESCRIPTION 00013 // This class, as the name suggests, is for the generated code for 00014 // the enum types. 00015 // 00016 // = AUTHOR 00017 // Priyanka Gontla <gontla_p@ociweb.com> 00018 // 00019 // ============================================================================ 00020 00021 #ifndef TAO_PSDL_ENUM_TYPE_VISITOR_H 00022 #define TAO_PSDL_ENUM_TYPE_VISITOR_H 00023 00024 #include /**/ "ace/pre.h" 00025 00026 #include "PSDL_Node_Visitor.h" 00027 00028 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00029 # pragma once 00030 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00031 00032 class TAO_PSDL_Enum_Type_Visitor : public TAO_PSDL_Node_Visitor 00033 { 00034 public: 00035 00036 TAO_PSDL_Enum_Type_Visitor (); 00037 00038 ~TAO_PSDL_Enum_Type_Visitor (); 00039 00040 // Override the necessary methods for the enum types. 00041 int visit_identifier (TAO_PSDL_Identifier *identifier); 00042 00043 int visit_enumerator (TAO_PSDL_Enumerator *enumerator); 00044 00045 int visit_predefined_type (TAO_PSDL_Predefined_Type *predefined_type); 00046 00047 private: 00048 00049 void print_class_for_enum_type (ACE_CString enum_type_name); 00050 00051 }; 00052 00053 #include /**/ "ace/post.h" 00054 00055 #endif /* TAO_PSDL_ENUM_TYPE_VISITOR_H */