|
#ifndef MY_DATABLOCK_BASE_H
#define MY_DATABLOCK_BASE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PubHeader.h"
#ifdef _DLL_PROJECT
class CLASS_EXPORT CDataBlock_base
#else
class CDataBlock_base
#endif
{
public:
int m_sender_taskId;
int m_recver_taskId;
private:
WORD m_id;
DWORD m_param;
char* m_pbuf;
int m_buflen;
public:
CDataBlock_base();
~CDataBlock_base(void);
bool set(WORD id,DWORD param,char* pbuf,WORD len);
void set_sender_recver(int sender,int recver);
WORD get_id();
DWORD get_param();
char* get_data();
int get_datalen();
bool get(WORD& id,DWORD& param,char** pbuf,WORD& len);
static CDataBlock_base* New_DataBlock();
static void Delete_DataBlock(CDataBlock_base* pDataBlock);
};
#endif /* MY_MESSAGE_H */
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.