OSDN Git Service

Replaced mongrel with thin
[redminele/redminele.git] / ruby / lib / ruby / gems / 1.8 / gems / eventmachine-0.12.10-x86-mswin32-60 / ext / page.h
diff --git a/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-x86-mswin32-60/ext/page.h b/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-x86-mswin32-60/ext/page.h
new file mode 100644 (file)
index 0000000..36009ab
--- /dev/null
@@ -0,0 +1,51 @@
+/*****************************************************************************\r
+\r
+$Id$\r
+\r
+File:     page.h\r
+Date:     30Apr06\r
+\r
+Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.\r
+Gmail: blackhedd\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 __PageManager__H_\r
+#define __PageManager__H_\r
+\r
+\r
+/**************\r
+class PageList\r
+**************/\r
+\r
+class PageList\r
+{\r
+       struct Page {\r
+               Page (const char *b, size_t s): Buffer(b), Size(s) {}\r
+               const char *Buffer;\r
+               size_t Size;\r
+       };\r
+\r
+       public:\r
+               PageList();\r
+               virtual ~PageList();\r
+\r
+               void Push (const char*, int);\r
+               bool HasPages();\r
+               void Front (const char**, int*);\r
+               void PopFront();\r
+\r
+       private:\r
+               deque<Page> Pages;\r
+};\r
+\r
+\r
+#endif // __PageManager__H_\r