Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00024 
00025 #ifndef ICL_CORE_OS_FS_H_INCLUDED
00026 #define ICL_CORE_OS_FS_H_INCLUDED
00027 
00028 #include "icl_core/ImportExport.h"
00029 #include "icl_core/os_ns.h"
00030 
00031 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00032 # include "icl_core/Deprecate.h"
00033 #endif
00034 
00035 #if defined _SYSTEM_POSIX_
00036 # include "icl_core/os_posix_fs.h"
00037 #elif defined _SYSTEM_WIN32_
00038 # include "icl_core/os_win32_fs.h"
00039 #else
00040 # error "No os_fs implementation defined for this platform."
00041 #endif
00042 
00043 namespace icl_core {
00045 namespace os {
00046 
00047 inline int rename(const char *old_filename, const char *new_filename)
00048 {
00049   return ICL_CORE_OS_IMPL_NS::rename(old_filename, new_filename);
00050 }
00051 
00052 inline int unlink(const char *filename)
00053 {
00054   return ICL_CORE_OS_IMPL_NS::unlink(filename);
00055 }
00056 
00057 #ifdef _IC_BUILDER_ZLIB_
00058 
00062 bool ICL_CORE_IMPORT_EXPORT zipFile(const char *filename, const char *additional_extension = "");
00063 
00065 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00066 
00067 bool ICL_CORE_IMPORT_EXPORT ICL_CORE_VC_DEPRECATE_STYLE
00068 ZipFile(const char *filename, const char *additional_extension = "") ICL_CORE_GCC_DEPRECATE_STYLE;
00069 
00070 #endif
00071 
00072 
00073 #endif
00074 
00075 }
00076 }
00077 
00078 #endif