view 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 source

// 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__