00001 #ifndef _WINNT_OS_H_
00002 #define _WINNT_OS_H_
00003
00004 #include "OSDependent/OSDependent.h"
00005 #include "OSDependent/Posix/PosixOS.h"
00006
00007
00008
00009
00010 #ifdef WINNT_EXPORTS
00011 #define OSExport __declspec(dllexport)
00012 #else
00013 #define OSExport __declspec(dllimport)
00014 #endif
00015
00016 typedef struct _stat stat_t;
00017
00018
00019
00020
00021 class OSExport OS : public PosixOS {
00022 public:
00023 static const char DirectorySeparator;
00024 static const char *TemporaryDirectory;
00025 static const char *LineSeparator;
00026
00027 static int stat(const char *name, stat_t *stat);
00028 static int mkdir(const char *name);
00029 static int rmdir(const char *name);
00030 static int chdir(const char *name);
00031 static int rename(const char *src, const char *dst);
00032 static int remove(const char *name);
00033 static bool isDirectory(const char *name);
00034 static const char *getMyHostName();
00035 static const char *getMyHostIPAddr();
00036 static char *strtok_r(char *s, const char *tokens, char **lasts);
00037 static char *getProcessorName();
00038 static char *getOSName();
00039 static const char *getUserName();
00040 static int getErrno();
00041 static char *getenv(const char *str);
00042 static int system(const char *fmt, ...);
00043 static int access(const char *path, int mode);
00044
00045
00046 static float getTimeMilliseconds();
00047
00048
00049 static char setValue (char *key, char *subKey, char* value);
00050 static char *getValue (char *key, char *subkey);
00051 static char *strdup(const char *str);
00052 static void free(void *p);
00053 static void *malloc(size_t size);
00054 static void *memcpy(void *d, const void *s, int len);
00055
00056
00057 };
00058
00059 #endif // _WINNT_OS_H_