00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef OSDL_UTILS_H_
00028 #define OSDL_UTILS_H_
00029
00030
00031
00032 #include "OSDLException.h"
00033
00034 #include "Ceylan.h"
00035
00036 #include <string>
00037
00038
00039
00040 #if ! defined(OSDL_USES_SDL) || OSDL_USES_SDL
00041
00042
00043 struct SDL_RWops ;
00044
00045 #endif // ! defined(OSDL_USES_SDL) || OSDL_USES_SDL
00046
00047
00048
00049
00050 namespace OSDL
00051 {
00052
00053
00054
00059 namespace Utils
00060 {
00061
00062
00063
00070 OSDL_DLL const std::string getBackendLastError() ;
00071
00072
00073
00086 OSDL_DLL Ceylan::Latin1Char getNativeDirectorySeparator() ;
00087
00088
00089
00105 OSDL_DLL std::string getProgramPath() ;
00106
00107
00108
00130 OSDL_DLL std::string getUserDirectory() ;
00131
00132
00133
00142 typedef ::SDL_RWops DataStream ;
00143
00144
00145
00159 OSDL_DLL DataStream & createDataStreamFrom(
00160 Ceylan::System::File & sourceFile ) ;
00161
00162
00163
00170 OSDL_DLL void deleteDataStream( DataStream & datastream ) ;
00171
00172
00173
00174 }
00175
00176
00177 }
00178
00179
00180
00181 #endif // OSDL_UTILS_H_
00182