message.h

来自「本代码是基于LINUX系统下的」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef __MESSAGE_H__
#define __MESSAGE_H__
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <memory.h>
#include <string.h>


class CMessage
{
public:
	CMessage(){total_Str = NULL;}
	CMessage(char *buff, int buf_length);
	void SetSingleStr(char *str, int startc, int length);
	void GetsingleStr(char *str, int startc, int length);
	int GetType();
	int GetTotalStrLen();
	int GetSID();

	virtual char *GetTotalStr(){return total_Str;}		//cs
	virtual int GetUID(){return total_Str[0];}		//c
	virtual char *GetPWD(){return total_Str;}		//c
	virtual char *GetName(){return total_Str;}		//c
	virtual int GetLMCount(){return total_Str[0];}		//s
	virtual char *GetList(){return total_Str;}			//s
	virtual char *GetMessage(){return total_Str;}		//s
	virtual ~CMessage();

protected:
	int Type,Sid,total_length;
	char *total_Str;
};

#endif 







⌨️ 快捷键说明

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