logdata.h

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

H
59
字号
//////////////////////////////////////////////////////////////////////////////// Filename   : LogData.h// Written by : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __LOGDATA_H__#define __LOGDATA_H__#include "Types.h"//////////////////////////////////////////////////////////////////////////////// class LogData//////////////////////////////////////////////////////////////////////////////class LogData{///// Member methods /////public: // constructor & destructor	LogData();	~LogData();public: // identity methods	short         getType(void)         { return m_Type; }	short         getZoneID(void)       { return m_ZoneID; }	const string& getSource(void)       { return m_Source; }	const string& getTarget(void)       { return m_Target; }	const string& getContent(void)      { return m_Content; }	void   setType(short type)                 { m_Type = type; }	void   setZoneID(short id)                 { m_ZoneID = id; }	void   setSource(const string& source)     { m_Source = source; }	void   setTarget(const string& target)     { m_Target = target; }	void   setContent(const string& content)   { m_Content = content; }public: // i/o	uint getSize(void);	int  read(int sockfd);	void write(int sockfd);public: // misc	string toString(void) const;///// Member data /////protected:	short   m_Type;           // 荤扒狼 辆幅	short   m_ZoneID;         // 荤扒捞 老绢抄 镑狼 zone id	string  m_Source;         // 荤扒阑 惯积矫挪 敲饭捞绢狼 捞抚	string  m_Target;         // 荤扒阑 寸茄(?) 敲饭捞绢狼 捞抚	string  m_Content;        // 荤扒狼 郴侩};#endif

⌨️ 快捷键说明

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