diff include/cache.h @ 10:1fda3a06c39b

file name arrange.
author pyon@macmini
date Fri, 21 Oct 2011 07:58:23 +0900
parents
children 9b0840b0be7e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/cache.h	Fri Oct 21 07:58:23 2011 +0900
@@ -0,0 +1,38 @@
+// Filename   : cache.h
+// Last Change: 21-Oct-2011.
+//
+#ifndef __cache__
+#define __cache__
+
+class CacheItem
+{
+public:
+    wxString filename;  // key
+    wxString fullpathname; 
+    wxString z, l;
+    wxBitmap thumbnail;
+    bool     marksheet;
+};
+
+WX_DECLARE_HASH_MAP( wxString, CacheItem*, wxStringHash, wxStringEqual, CacheHash );
+
+class Cache
+{
+public:
+    wxString  key;
+    CacheHash ch;
+    wxString  m_dir;
+
+    bool IsCached( wxString file );
+    void UpdateCache();
+};
+
+bool Cache::IsCached( wxString file )
+{
+    Cache* i = new Cache;
+    return false;
+}
+
+
+#endif // __cache__
+