⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 message.h

📁 本代码是基于LINUX系统下的
💻 H
字号:
// Message.h: interface for the CMessage class.
//
//////////////////////////////////////////////////////////////////////

/*#if !defined(AFX_MESSAGE_H__55773825_0AEA_4F51_96E9_429DAFC2D40A__INCLUDED_)
#define AFX_MESSAGE_H__55773825_0AEA_4F51_96E9_429DAFC2D40A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000*/

///////////////////////////////////////////////////////////////////////
#ifndef __MESSAGE_H__
#define __MESSAGE_H__

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <memory.h>
#include <string.h>
using namespace std;


//##ModelId=46417F380398
class CMessage
{
public:
	//##ModelId=46417F380399
	CMessage(){}
	//##ModelId=46417F38039A
	CMessage(char *buff, int buf_length);
	//##ModelId=46417F3803A4
	void SetSingleStr(char *str, int startc, int length);
	//##ModelId=46417F3803AD
	void GetsingleStr(char *str, int startc, int length);
	//##ModelId=46417F3803B6
	int GetType();
	//##ModelId=46417F3803B7
	int GetTotalStrLen();
	//##ModelId=46417F3803B8
	int GetSID();

	//##ModelId=46417F3803B9
	virtual char *GetTotalStr(){return total_Str;}		//cs
	//##ModelId=46417F3803C1
	virtual int GetUID(){return total_Str[0];}		//c
	//##ModelId=46417F3803C3
	virtual char *GetPWD(){return total_Str;}		//c
	//##ModelId=46417F3803CA
	virtual char *GetName(){return total_Str;}		//c
	//##ModelId=46417F3803CC
	virtual int GetLMCount(){return total_Str[0];}		//s
	//##ModelId=46417F3803CE
	virtual char *GetList(){return total_Str;}			//s
	//##ModelId=46417F3803D5
	virtual char *GetMessage(){return total_Str;}		//s
	//##ModelId=46417F3803D7
	virtual ~CMessage();

protected:
	int Type,Sid,total_length;
	//##ModelId=46417F3803D9
	char *total_Str;
};

//#endif 
// !defined(AFX_MESSAGE_H__55773825_0AEA_4F51_96E9_429DAFC2D40A__INCLUDED_)

//CMessage::CMessage()
//{}

#endif

⌨️ 快捷键说明

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