Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

OS.h

Go to the documentation of this file.
00001 #ifndef _WINNT_OS_H_
00002 #define _WINNT_OS_H_
00003 
00004 #include "OSDependent/OSDependent.h"
00005 #include "OSDependent/Posix/PosixOS.h"
00006 #include "OSWrappers/Memory/Memory.h"
00007 
00008 /*
00009  * Allow outside modules to import the static data members.
00010  */
00011 #ifdef WINCE_EXPORTS
00012   #define OSExport __declspec(dllexport)
00013 #else
00014   #define OSExport __declspec(dllimport)
00015 #endif
00016 
00017 /*
00018  * Machine dependent operating system functions.
00019  */
00020 class OSExport OS : public PosixOS {
00021 public:
00022   static const char DirectorySeparator;
00023   static const char *TemporaryDirectory;
00024   static const char *LineSeparator;
00025 
00026   static int mkdir(const char *name);
00027   static int rmdir(const char *name);
00028   static int rename(const char *src, const char *dst);
00029   static int remove(const char *name);
00030   static bool isDirectory(const char *name);
00031   static const char *getMyHostName();
00032   static char *strtok_r(char *s, const char *tokens, char **lasts);
00033   static char *getProcessorName();
00034   static char *getOSName();
00035   static int getErrno();
00036   static char *getenv(const char *str);
00037   static int system(const char *fmt, ...);
00038   static int sprintf( char *buffer, const char *format, ... );
00039   static char setValue (char *key, char *subKey, char* value);
00040   static char *getValue (char *key, char *subkey);
00041   static char *strdup(const char *orig);
00042   static void free(void *p); 
00043   static void *malloc(size_t size);
00044 };
00045 
00046 #endif  // _WINNT_OS_H_

Generated on Mon Oct 7 09:33:30 2002 for Gaia by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001