PSDL_Root_Scope.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // PSDL_Root_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_Root_Scope
00011 //
00012 // = DESCRIPTION
00013 //    Derived class from PSDL_Scope. This is for the Root Scope.
00014 //
00015 // = AUTHOR
00016 //    Priyanka Gontla <gontla_p@ociweb.com>
00017 //
00018 // ============================================================================
00019 
00020 #ifndef TAO_PSDL_ROOT_SCOPE_H
00021 #define TAO_PSDL_ROOT_SCOPE_H
00022 
00023 #include /**/ "ace/pre.h"
00024 
00025 #include "PSDL_Scope.h"
00026 #include "PSDL_Module_Scope.h"
00027 
00028 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00029 # pragma once
00030 #endif /* ACE_LACKS_PRAGMA_ONCE */
00031 
00032 class TAO_PSDL_Export TAO_PSDL_Root_Scope : public TAO_PSDL_Scope
00033 {
00034 public:
00035 
00036   TAO_PSDL_Root_Scope (void);
00037 
00038   ~TAO_PSDL_Root_Scope (void);
00039 
00040   /// Methods to be able to add the respective types to the Root
00041   /// Scope.
00042   int add_module (ACE_CString identifier);
00043 
00044   int add_interface (ACE_CString identifier);
00045 
00046   int add_struct (ACE_CString identifier);
00047 
00048   int add_typedef (ACE_CString identifier,
00049                    ACE_CString identifier_type);
00050 
00051   int add_const_decl (ACE_CString identifier,
00052                       ACE_CString identifier_type);
00053 
00054   int add_except_decl (ACE_CString identifier,
00055                        ACE_CString identifier_type);
00056 
00057   int add_op_dcl (ACE_CString identifier);
00058 
00059   void dump (CORBA::ULong depth);
00060 
00061   int find (const ACE_CString &identifier_name,
00062             ACE_CString &identifier_type);
00063 
00064   int find (const ACE_CString &identifier_name);
00065 
00066   int get_module_name (const ACE_CString &identifier_name,
00067                        ACE_CString &module_name);
00068   
00069   int get_interface_name (const ACE_CString &identifier_name,
00070                           ACE_CString &interface_name);
00071   
00072   /// Public methods to return the scopes needed.
00073   TAO_PSDL_Scope *parent_scope (void);
00074 
00075   Scope_Map *scope_map (void);
00076 
00077 protected:
00078 
00079   Scope_Map root_scope_map_;
00080 };
00081 
00082 #include /**/ "ace/post.h"
00083 
00084 #endif /* TAO_PSDL_ROOT_SCOPE_H */

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