os_fs.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_OS_FS_H_INCLUDED
26 #define ICL_CORE_OS_FS_H_INCLUDED
27 
28 #include "icl_core/ImportExport.h"
29 #include "icl_core/os_ns.h"
30 
31 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
32 # include "icl_core/Deprecate.h"
33 #endif
34 
35 #if defined _SYSTEM_POSIX_
36 # include "icl_core/os_posix_fs.h"
37 #elif defined _SYSTEM_WIN32_
38 # include "icl_core/os_win32_fs.h"
39 #else
40 # error "No os_fs implementation defined for this platform."
41 #endif
42 
43 namespace icl_core {
45 namespace os {
46 
47 inline int rename(const char *old_filename, const char *new_filename)
48 {
49  return ICL_CORE_OS_IMPL_NS::rename(old_filename, new_filename);
50 }
51 
52 inline int unlink(const char *filename)
53 {
54  return ICL_CORE_OS_IMPL_NS::unlink(filename);
55 }
56 
57 #ifdef _IC_BUILDER_ZLIB_
58 
62 bool ICL_CORE_IMPORT_EXPORT zipFile(const char *filename, const char *additional_extension = "");
63 
65 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
66 
68 ZipFile(const char *filename, const char *additional_extension = "") ICL_CORE_GCC_DEPRECATE_STYLE;
69 
70 #endif
71 
73 #endif
74 
75 }
76 }
77 
78 #endif
#define ICL_CORE_VC_DEPRECATE_STYLE
Definition: Deprecate.h:53
Contains macros to deprecate classes, types, functions and variables.
#define ICL_CORE_IMPORT_EXPORT
Definition: ImportExport.h:42
Win32 implementation of the global filesystem functions.
int unlink(const char *filename)
Definition: os_fs.h:52
Definition of the implementation namespace for global functions.
int rename(const char *old_filename, const char *new_filename)
Definition: os_fs.h:47
Posix implementation of the global filesystem functions.
Contains import/export definitions for the Win32 plattform.
#define ICL_CORE_GCC_DEPRECATE_STYLE
Definition: Deprecate.h:54


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58