/* ==================================================================== * ÆÄ ÀÏ : ItemBillPool.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : °ûöÁß * ÀÛ ¼º ÀÏ : 09/12/17 * ÁÖÀÇ»çÇ× : * =================================================================== */ #ifndef __ITEM_BILL_POOL_H__ #define __ITEM_BILL_POOL_H__ //#ifndef WINVER //#define WINVER 0x0500 //#endif // //#ifndef _WIN32_WINNT //#define _WIN32_WINNT 0x0500 //#endif #pragma once #include #include "memorypool.h" enum ITEMBILL_TYPE { ITEM_BILL_NONE=0, ITEM_BILL_DATE, ITEM_BILL_TIME, }; struct PerItemBill : PerNode { long idx; // °íÀ¯¹øÈ£ BYTE type; // Á¾·ù(0 ÀÏ¹Ý / 1 ±â°£ / 2 ½Ã°£) long validDate; // À¯È¿±â°£(ÃÊ ´ÜÀ§ »ç¿ë) long validTime; // À¯È¿½Ã°£(ÃÊ ´ÜÀ§ »ç¿ë) long inventoryIdx; // K TB_INVENTORY::IDX °íÀ¯¹øÈ£ time_t timeBegin; // ½ÃÀ۽ð£ time_t timeEnd; // Á¾·á½Ã°£ BYTE apply; // »ç¿ë¿©ºÎ(0 »ç¿ëÁß, 1 »ç¿ëÁßÁö, 2 »èÁ¦¿¹¾à) }; struct ItemBillRoot : NodeRoot {}; class cItemBillPool { private: PerItemBill* mNonPagedPoolUsage; // ÆäÀÌÁö ¾ÈµÈ Ç®. public: cItemBillPool( ); void Shutdown ( ); PerItemBill* SearchItemBill ( ItemBillRoot* root, long inventoryIdx ); PerItemBill* GetItemBill ( ItemBillRoot* root, long inventoryIdx ); void ReleaseItemBill ( ItemBillRoot* root, PerItemBill* itemBill ); public: virtual ~cItemBillPool(void); public: static cItemBillPool* mpItemBillPool; }; #define ITEMBILLPOOL cItemBillPool::mpItemBillPool #endif // __ITEM_BILL_POOL_H__