zoneinfomanager.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 73 行

H
73
字号
//----------------------------------------------------------------------//// Filename    : ZoneInfoManager.h// Written By  : Reiot// Description :////----------------------------------------------------------------------#ifndef __ZONE_INFO_MANAGER_H__#define __ZONE_INFO_MANAGER_H__// include files#include "Types.h"#include "Exception.h"#include "ZoneInfo.h"#include <hash_map>typedef hash_map< ZoneID_t , ZoneInfo * > HashMapZoneInfo;//----------------------------------------------------------------------//// class ZoneInfoManager;//// 粮 酒捞叼甫 虐蔼栏肺 窍绰 粮 沥焊狼 hash_map 阑 啊瘤绊 乐促.////----------------------------------------------------------------------class ZoneInfoManager {	public :		// constructor	ZoneInfoManager () throw ();		// destructor	~ZoneInfoManager () throw ();	// initialize manager	void init () throw ( Error );	// load from database	void load () throw ( Error );		// add info	void addZoneInfo ( ZoneInfo * pZoneInfo ) throw ( DuplicatedException );		// delete info	void deleteZoneInfo ( ZoneID_t zoneID ) throw ( NoSuchElementException );		// get info	ZoneInfo * getZoneInfo ( ZoneID_t zoneID ) const throw ( NoSuchElementException );	// get count of info	uint getSize () const throw () { return m_ZoneInfos.size(); }	// get debug string	string toString () const throw ();private :		// hash map of ZoneInfo	// key   : ZoneID_t	// value : ZoneInfo *	HashMapZoneInfo m_ZoneInfos;};// global variable declarationextern ZoneInfoManager * g_pZoneInfoManager;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?