Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

java_lang_System.h

00001 #ifndef xmogInc_javalangSystem
00002 #define xmogInc_javalangSystem
00003 
00004 #   if !defined(JMS_DECLSPEC )
00005 #       if defined(_MSC_VER)
00006 #           pragma message( "Relying on default definition of JMS_DECLSPEC " )
00007 #       endif /* defined(_MSC_VER) */
00008         // the following default definition works for all non-Windows platforms and for
00009         // executable projects on Windows where the sources are built directly into the binary
00010 #       define JMS_DECLSPEC 
00011 #   endif /* !defined(JMS_DECLSPEC ) */
00012 
00013     namespace java
00014     {
00015         namespace io
00016         {
00017             class InputStream;
00018             class PrintStream;
00019         }
00020         namespace lang
00021         {
00022             class Object;
00023             class SecurityManager;
00024             class String;
00025             class System;
00026         }
00027         namespace util
00028         {
00029             class Properties;
00030         }
00031     }
00032 
00033 #   include "java_lang_Object.h"
00034 
00035     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00036 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00037 #       if defined(new)
00038 #           undef new
00039 #       endif /* defined(new) */
00040 #       if defined(delete)
00041 #           undef delete
00042 #       endif /* defined(delete) */
00043 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00044 
00062     class JMS_DECLSPEC java::lang::System : 
00063         public virtual ::java::lang::Object
00064     {
00065     public:
00066         enum 
00067         {
00068             xmogDefaultFlags = xmog_base::GLOBAL,
00069             xmogMajorVersion = 3,
00070             xmogMinorVersion = 2,
00071             xmogPatchVersion = 9,
00072             xmogBuildNumber = 2047
00073         };
00074 
00075     public:
00076 
00077         typedef ::xmog_java_array_template< ::java::lang::System > array1D;
00078 
00079         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::System > > array2D;
00080 
00095         static ::java::io::PrintStream err;
00096 
00105         static ::java::io::InputStream in;
00106 
00123         static ::java::io::PrintStream out;
00124 
00125 
00127 
00144         System( );
00145 
00158         System( const ::java::lang::System & _rhs );
00159 
00172         System( jobject _local, xmog_flags f_xflags );
00173 
00186         System( const ::xmog_null & _null_instance );
00187 
00198         System( ::xmog_java_array * _arr, jint _index );
00199 
00213         System( const ::java::lang::System & _rhs, ::xmog_localenv * p_lxenv );
00214 
00226         XMOG_EXPLICIT System( ::xmog_base * _delegate, bool _owns_delegate = true );
00227 
00241         System( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00242 
00249         ~System( );
00250 
00263         java::lang::System operator =( const java::lang::System & _rhs );
00264 
00279         void operator delete( void * _ptr );
00280 
00281 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00297             void operator delete( void * ptr, void * loc );
00298 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00299 
00314         void * operator new( size_t _size );
00315 
00316 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00334             void * operator new( size_t _size, void * _ptr );
00335 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00336 
00338 
00432         static void arraycopy( const ::java::lang::Object & src, jint srcPos, const ::java::lang::Object & dest, jint destPos, jint length, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00433 
00456         static jlong currentTimeMillis( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00457 
00459 
00480         static ::java::lang::System dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00481 
00483 
00508         static void exit( jint status, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00509 
00535         static void gc( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00536 
00627         static ::java::util::Properties getProperties( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00628 
00651         static ::java::lang::String getProperty( const ::java::lang::String & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00652 
00676         static ::java::lang::String getProperty( const ::java::lang::String & key, const ::java::lang::String & def, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00677 
00690         static ::java::lang::SecurityManager getSecurityManager( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00691 
00693 
00707         static ::xmog_java_class * get_class( );
00708 
00717         static ::xmog_java_class * get_element_class( );
00718 
00720 
00736         static ::java::lang::String getenv( const ::java::lang::String & name, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00737 
00755         static jint identityHashCode( const ::java::lang::Object & x, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00756 
00778         static void load( const ::java::lang::String & filename, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00779 
00801         static void loadLibrary( const ::java::lang::String & libname, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00802 
00815         static ::java::lang::String mapLibraryName( const ::java::lang::String & libname, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00816 
00842         static void runFinalization( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00843 
00865         static void runFinalizersOnExit( bool value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00866 
00884         static void setErr( const ::java::io::PrintStream & err, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00885 
00904         static void setIn( const ::java::io::InputStream & in, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00905 
00923         static void setOut( const ::java::io::PrintStream & out, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00924 
00948         static void setProperties( const ::java::util::Properties & props, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00949 
00973         static ::java::lang::String setProperty( const ::java::lang::String & key, const ::java::lang::String & value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00974 
01000         static void setSecurityManager( const ::java::lang::SecurityManager & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01001 
01003 
01022         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
01024 
01025     };
01026 #endif /* xmogInc_javalangSystem */
01027 

Generated on Fri Jun 16 10:18:56 2006 for JMS Courier for C++ by  doxygen 1.4.1