PSDL_Module_Scope.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // PSDL_Module_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_Module_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_MODULE_SCOPE_H
00021 #define TAO_PSDL_MODULE_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_Module_Scope : public TAO_PSDL_Scope
00032 {
00033  public:
00034 
00035   TAO_PSDL_Module_Scope (TAO_PSDL_Scope *parent_scope);
00036 
00037   ~TAO_PSDL_Module_Scope (void);
00038 
00039   // Override the necessary methods for the modules.
00040   int add_module (ACE_CString identifier);
00041 
00042   int add_interface (ACE_CString identifier);
00043 
00044   int add_struct (ACE_CString identifier);
00045 
00046   int add_typedef (ACE_CString identifier,
00047                    ACE_CString identifier_type);
00048 
00049   int add_const_decl (ACE_CString identifier,
00050                       ACE_CString identifier_type);
00051 
00052   int add_except_decl (ACE_CString identifier,
00053                        ACE_CString identifier_type);
00054 
00055   int add_exception (ACE_CString identifier);
00056 
00057   int add_enum_decl (ACE_CString identifier,
00058                      ACE_CString identifier_type);
00059 
00060   int add_op_dcl (ACE_CString identifier);
00061 
00062   void dump (CORBA::ULong depth);
00063 
00064   int find (const ACE_CString &identifier_name,
00065             ACE_CString &identifier_type);
00066 
00067   int find (const ACE_CString &identifier_name);
00068   
00069   int get_module_name (const ACE_CString &identifier_name,
00070                        ACE_CString &module_name);
00071   
00072   int get_interface_name (const ACE_CString &identifier_name,
00073                           ACE_CString &interface_name);
00074 
00075   TAO_PSDL_Scope *parent_scope (void);
00076 
00077   Scope_Map *scope_map (void);
00078 
00079   ACE_CString identifier_type (void);
00080   ACE_CString module_name (void);
00081   ACE_CString interface_name (void);
00082 
00083 protected:
00084 
00085   Scope_Map module_scope_;
00086   TAO_PSDL_Scope *parent_scope_;
00087 
00088   // Type of this scope. Useful later when needed to find the type of
00089   // a particular PSDL_Scope *
00090   ACE_CString identifier_type_;
00091   ACE_CString module_name_;
00092   ACE_CString interface_name_;
00093 };
00094 
00095 #include /**/ "ace/post.h"
00096 
00097 #endif /* TAO_PSDL_MODULE_SCOPE_H */

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