#pragma once // PatchWatcher¸¦ ±×´ë·Î º£À̽ºÅ¬·¡½º·Î ¸¸µé¾î¼­ ÃßÈÄ¿¡ È®ÀåÇÏ¿© »ç¿ëÇÒ¼ö ÀÖµµ·Ï ÇÑ´Ù. struct _WATCH_SPEC { int nNID; WCHAR wszType[64]; ULONG nInsertTick; }; struct _WATCH_OBJECT { int nVersionID; std::list <_WATCH_SPEC> SpecList; }; class CWatcherBase { public: CWatcherBase(); ~CWatcherBase(); virtual bool AddWatchSpec(int nVersionID, int nNID, const WCHAR * pType); virtual bool DelWatchSpec(int nVersionID, int nNID, const WCHAR * pType, bool &bComplete); virtual bool HasWatchingSpec(); virtual void DelWatchSpec(int nNID); virtual void ClearWatchingSpec(); protected: std::list <_WATCH_OBJECT> m_WatchList; CSyncLock m_Sync; };