Scope.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_SCOPE_H
00002 #define JAVA_LANG_SCOPE_H 1
00003 
00004 #ifndef JAVA_LANG_SCOPEADAPTER_H
00005 #include <java_lang/ScopeAdapter.h>
00006 #endif /* JAVA_LANG_SCOPEADAPTER_H */
00007 
00008 namespace java {
00009   namespace lang {
00010 
00021     class JAVA_LANG_SPEC Scope : virtual public Object {
00022 
00023     public:
00024       
00025       Scope(const Ref<ScopeAdapter>& _adapter = 0) 
00026         : adapter(_adapter) 
00027       { if (adapter != 0) adapter->enter();}
00028         
00029       virtual ~Scope() 
00030       { if (adapter != 0) adapter->exit();}
00031 
00032     private:
00033 
00034       Ref<ScopeAdapter> adapter;
00035       REGISTER_MEMBERS;
00036 
00037     };
00038 
00039   } // namespace lang
00040 } // namespace java
00041 
00042 #endif /* JAVA_LANG_SCOPE_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3