00001
00002
00003
00004 #include "PSDL_Module_Scope.h"
00005 #include "PSDL_Op_Dcl_Scope.h"
00006
00007 ACE_RCSID (PSS, PSDL_Op_Dcl_Scope, "PSDL_Op_Dcl_Scope.cpp,v 1.1 2002/07/25 15:25:51 pgontla Exp")
00008
00009 TAO_PSDL_Op_Dcl_Scope::TAO_PSDL_Op_Dcl_Scope (TAO_PSDL_Scope *parent_scope)
00010 : scope_map_ (),
00011 parent_scope_ (parent_scope)
00012 {
00013 }
00014
00015 int
00016 TAO_PSDL_Op_Dcl_Scope::add_const_decl (ACE_CString identifier,
00017 ACE_CString identifier_type)
00018 {
00019 return TAO_PSDL_Scope::instance ()->add_const_decl_to_scope (identifier,
00020 identifier_type,
00021 this);
00022 }
00023
00024 int
00025 TAO_PSDL_Op_Dcl_Scope::add_member_decl (ACE_CString identifier,
00026 ACE_CString identifier_type)
00027 {
00028 return TAO_PSDL_Scope::instance ()->add_member_decl_to_scope (identifier,
00029 identifier_type,
00030 this);
00031 }
00032
00033 void
00034 TAO_PSDL_Op_Dcl_Scope::dump (CORBA::ULong depth)
00035 {
00036 depth = depth + 5;
00037
00038 for (Scope_Map_Iterator i = this->scope_map_.begin ();
00039 i != this->scope_map_.end ();
00040 ++i)
00041 {
00042 this->print_depth (depth);
00043 ACE_DEBUG ((LM_DEBUG,
00044 "%s (%s)\n",
00045 (*i).ext_id_.c_str (), (*i).int_id_));
00046 }
00047 }
00048
00049 TAO_PSDL_Scope *
00050 TAO_PSDL_Op_Dcl_Scope::parent_scope (void)
00051 {
00052 return this->parent_scope_;
00053 }
00054
00055 Scope_Map *
00056 TAO_PSDL_Op_Dcl_Scope::scope_map (void)
00057 {
00058 return &this->scope_map_;
00059 }