--- /dev/null
+/*****************************************************************************\r
+\r
+$Id: mapper.h 4529 2007-07-04 11:32:22Z francis $\r
+\r
+File: mapper.h\r
+Date: 02Jul07\r
+\r
+Copyright (C) 2007 by Francis Cianfrocca. All Rights Reserved.\r
+Gmail: garbagecat10\r
+\r
+This program is free software; you can redistribute it and/or modify\r
+it under the terms of either: 1) the GNU General Public License\r
+as published by the Free Software Foundation; either version 2 of the\r
+License, or (at your option) any later version; or 2) Ruby's License.\r
+\r
+See the file COPYING for complete licensing information.\r
+\r
+*****************************************************************************/\r
+\r
+\r
+#ifndef __Mapper__H_\r
+#define __Mapper__H_\r
+\r
+\r
+/**************\r
+class Mapper_t\r
+**************/\r
+\r
+class Mapper_t\r
+{\r
+ public:\r
+ Mapper_t (const string&);\r
+ virtual ~Mapper_t();\r
+\r
+ const char *GetChunk (unsigned);\r
+ void Close();\r
+ size_t GetFileSize() {return FileSize;}\r
+\r
+ private:\r
+ size_t FileSize;\r
+\r
+ #ifdef OS_UNIX\r
+ private:\r
+ int Fd;\r
+ const char *MapPoint;\r
+ #endif // OS_UNIX\r
+\r
+ #ifdef OS_WIN32\r
+ private:\r
+ HANDLE hFile;\r
+ HANDLE hMapping;\r
+ char *MapPoint;\r
+ #endif // OS_WIN32\r
+\r
+};\r
+\r
+\r
+#endif // __Mapper__H_\r
+\r