ProtocolFunc.h
资源名称:1731.rar [点击查看]
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:1k
源码类别:
游戏
开发平台:
Visual C++
- // ProtocolFunc.h: interface for the ProtocolFunc class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_PROTOCOLFUNC_H__88F07227_7067_4C00_A135_8A268A51EC04__INCLUDED_)
- #define AFX_PROTOCOLFUNC_H__88F07227_7067_4C00_A135_8A268A51EC04__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define CLIENT_SENDMSG "PROTO_SENDMSG"
- typedef struct _tagNODESTRING
- {
- CString strContent;
- }*LPNODESTRING,NODESTRING;
- //MATE替换结构
- //##ModelId=3B394E110277
- typedef struct _NODEMATE
- {
- CString strMateName;
- CString strMateValue;
- } NODEMATE,*LPNODEMATE;
- class ProtocolFunc
- {
- public:
- ProtocolFunc();
- virtual ~ProtocolFunc();
- public:
- void DeleteMateList(CPtrList* pMateList);
- void GetProtoContent(CString strProtoText,CString strKeyStart,CString strKeyEnd,CString& strContent);
- void GetProtoLineEnd(CString strStart,CString& strEnd);
- void ReleaseList(CPtrList* pListTemp);
- void GetListBySign(CString strText,CPtrList* pListTemp,CString strSign);
- void GetListByTwoSign(CString strText,CPtrList* pListTemp,CString strMidSign,CString strEndSign);
- void GetValueFromList(CString strKey,CString& strValue,CPtrList* pListTemp);
- void ReplaceMateList(CPtrList* pMateList,CString& strFileBuffer);
- };
- #endif // !defined(AFX_PROTOCOLFUNC_H__88F07227_7067_4C00_A135_8A268A51EC04__INCLUDED_)