lib/misc/map_table.h
changeset 0 6f7a81934006
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/misc/map_table.h	Wed Jan 16 22:39:43 2008 +0100
@@ -0,0 +1,20 @@
+#ifndef VMAILMGR__MAP_TABLE__H__
+#define VMAILMGR__MAP_TABLE__H__
+
+#include "misc/hash_table.h"
+#include "misc/crc_hash.h"
+#include "mystring/mystring.h"
+
+class map_table : public hash_table<mystring,hash_node<mystring>,crc_hash>
+{
+  bool valid;
+public:
+  map_table(const mystring& filename);
+  ~map_table();
+  bool operator!() const
+    {
+      return !valid;
+    }
+};
+
+#endif