00001 /* -*- C++ -*- */ 00002 // PSDL_Simple_Scope.h,v 1.2 2003/07/21 23:51:30 dhinton Exp 00003 // 00004 // ============================================================================ 00005 // 00006 // = LIBRARY 00007 // PSS 00008 // 00009 // = FILENAME 00010 // PSDL_Simple_Scope 00011 // 00012 // = DESCRIPTION 00013 // Scope class for the Exception type helpful for building the AST. 00014 // 00015 // = AUTHOR 00016 // Priyanka Gontla <gontla_p@ociweb.com> 00017 // 00018 // ============================================================================ 00019 00020 #ifndef TAO_PSDL_SIMPLE_SCOPE_H 00021 #define TAO_PSDL_SIMPLE_SCOPE_H 00022 00023 #include /**/ "ace/pre.h" 00024 00025 #include "PSDL_Scope.h" 00026 00027 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00028 # pragma once 00029 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00030 00031 class TAO_PSDL_Export TAO_PSDL_Simple_Scope : public TAO_PSDL_Scope 00032 { 00033 public: 00034 00035 TAO_PSDL_Simple_Scope (TAO_PSDL_Scope *parent_scope, 00036 ACE_CString identifier_type); 00037 00038 ~TAO_PSDL_Simple_Scope (void); 00039 00040 // Override the necessary methods for the simples. 00041 int add_typedef (ACE_CString identifier, 00042 ACE_CString identifier_type); 00043 00044 int add_const_decl (ACE_CString identifier, 00045 ACE_CString identifier_type); 00046 00047 int add_except_decl (ACE_CString identifier, 00048 ACE_CString identifier_type); 00049 00050 int add_enum_decl (ACE_CString identifier, 00051 ACE_CString identifier_type); 00052 00053 int add_op_dcl (ACE_CString identifier); 00054 00055 void dump (CORBA::ULong depth); 00056 00057 int find (const ACE_CString &identifier_name, 00058 ACE_CString &identifier_type); 00059 00060 int find (const ACE_CString &identifier_name); 00061 00062 TAO_PSDL_Scope *parent_scope (void); 00063 00064 Scope_Map *scope_map (void); 00065 00066 ACE_CString identifier_type (void); 00067 ACE_CString module_name (void); 00068 ACE_CString interface_name (void); 00069 00070 protected: 00071 00072 Scope_Map scope_map_; 00073 TAO_PSDL_Scope *parent_scope_; 00074 ACE_CString identifier_type_; 00075 ACE_CString module_name_; 00076 ACE_CString interface_name_; 00077 }; 00078 00079 #include /**/ "ace/post.h" 00080 00081 #endif /* TAO_PSDL_SIMPLE_SCOPE_H */