#pragma once #include "xobject.hpp" #include "xnative.hpp" #include #include using kcachemgr = Hxsoft::XFrame::xfCacheMgr; class xcachemgr : public xnative { public: kcachemgr* GetCacheMgr() { return (kcachemgr*)getNativePointer(); } public: int InsertCacheFile(LPTSTR pStrUrl, LPTSTR pCacheFile, DWORD ver = 0) { return GetCacheMgr()->InsertCacheFile(pStrUrl, pCacheFile, ver); } LPCTSTR GetCacheFile(LPTSTR pStrUrl) { return GetCacheMgr()->GetCacheFile(pStrUrl); } DWORD GetCacheVersion(LPTSTR pStrUrl) { return GetCacheMgr()->GetCacheVersion(pStrUrl); } public: void CacheObject(LPCTSTR pUrl, void* pObject) { return GetCacheMgr()->CacheObject(pUrl, pObject); } void* GetCacheObject(LPCTSTR pUrl) { return GetCacheMgr()->GetCacheObject(pUrl); } };