00001 /* 00002 FALCON - The Falcon Programming Language. 00003 FILE: flc_sys.h 00004 00005 System related services. 00006 ------------------------------------------------------------------- 00007 Author: Giancarlo Niccolai 00008 Begin: mar nov 9 2004 00009 00010 ------------------------------------------------------------------- 00011 (C) Copyright 2004: the FALCON developers (see list in AUTHORS file) 00012 00013 See LICENSE file for licensing details. 00014 */ 00015 00020 #ifndef flc_flc_sys_H 00021 #define flc_flc_sys_H 00022 00023 #include <falcon/types.h> 00024 #include <falcon/dir_sys.h> 00025 #include <falcon/time_sys.h> 00026 00027 namespace Falcon { 00028 00029 class String; 00030 00031 namespace Sys { 00032 00033 00039 FALCON_DYN_SYM numeric _seconds(); 00040 00046 FALCON_DYN_SYM numeric _localSeconds(); 00047 00062 FALCON_DYN_SYM uint32 _milliseconds(); 00063 00068 FALCON_DYN_SYM void _tempName( ::Falcon::String &res ); 00069 00070 FALCON_DYN_SYM bool _describeError( int64 eid, String &target ); 00071 FALCON_DYN_SYM int64 _lastError(); 00072 FALCON_DYN_SYM bool _getEnv( const String &var, String &result ); 00073 FALCON_DYN_SYM bool _setEnv( const String &var, const String &value ); 00074 FALCON_DYN_SYM bool _unsetEnv( const String &var ); 00075 00076 FALCON_DYN_SYM void _dummy_ctrl_c_handler(); 00077 00078 #ifdef FALCON_SYSTEM_WIN 00079 } 00080 } 00081 #include <windows.h> 00082 #include <falcon/string.h> 00083 namespace Falcon { 00084 namespace Sys { 00085 FALCON_DYN_SYM numeric SYSTEMTIME_TO_SECONDS( const SYSTEMTIME &st ); 00086 FALCON_DYN_SYM void falconConvertWinFname( String &ret ); 00087 FALCON_DYN_SYM void falconToWin_fname( const String &path, const String &extra, String &result ); 00088 FALCON_DYN_SYM void falconToWin_fname( String &path ); 00089 #endif 00090 00091 } 00092 } 00093 00094 #endif 00095 00096 /* end of flc_sys.h */