#ifndef _RYL_DBAGENT_GIVE_ITEM_MGR_H_ #define _RYL_DBAGENT_GIVE_ITEM_MGR_H_ #include #include #include #include #include #ifdef AUTH_MY #include "NFAuthClient/AuthClient.h" #endif // forward decl. class CDBComponent; // ƯÁ¤ ij¸¯ÅÍÀÇ Àӽà Àκ¥¿¡ ¾ÆÀÌÅÛÀ» ³Ö¾î Áִ Ŭ·¡½ºÀÌ´Ù. class CGiveItemMgr { public: static CGiveItemMgr& GetInstance(); void SetDBComponent(CDBComponent& DBComponent); void CheckGiveItem(); void ReadGiveInfo(); bool UpdateItemSerial(unsigned long dwCreateID, unsigned __int64 dwItemSerial); #ifdef AUTH_MY bool UpdateBuyItemInfo(); #endif private: // first : ÁÙ ¾ÆÀÌÅÛ Á¤º¸ // second : ³×Æ®¿öÅ© Àü¼Û ¿©ºÎ (¸¶Áö¸· Àü¼Û ½Ã°£À» ±â·ÏÇÑ´Ù. 0À̸é Àü¼Û ¾È ÇÑ °ÍÀÓ) typedef std::pair GiveItem; typedef std::map, boost::fast_pool_allocator< std::pair > > GiveItemMap; CGiveItemMgr(); ~CGiveItemMgr(); bool UpdateItemSerial(GiveItemMap::iterator pos, GiveItemMap::iterator& NextPos, unsigned __int64 dwItemSerial); bool SetItem(char* szData, unsigned long& dwDataSize_InOut, unsigned long dwMaxDataSize, GiveItemInfo& giveItemInfo, unsigned long dwMaxItemNum, unsigned __int64& dwItemUID); CDBComponent* m_lpDBComponent; GiveItemMap m_GiveItemMap; OleDB::PARAM_INFO m_UpdateParamInfo; #ifdef AUTH_MY std::list m_NFItemInfo; #endif }; #endif