-
Notifications
You must be signed in to change notification settings - Fork 1
/
ObjDes.h
executable file
·42 lines (35 loc) · 1.04 KB
/
ObjDes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ObjDes.h: interface for the CObjDes class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OBJDES_H__E44F0C3A_50BE_4A41_A6EB_0FF96E86CE57__INCLUDED_)
#define AFX_OBJDES_H__E44F0C3A_50BE_4A41_A6EB_0FF96E86CE57__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "datatype.h"
typedef struct _tagObjDes
{
TYPEDES dt; //数据类型
char szName[64]; //名称
long offset; //offset
}OBJDES;
class cParser;
class CObjDes
{
private:
OBJDES *m_MemberTable; //成员列表
long m_lTableSize; //buffer大小
long m_lMemberNum; //成员数
char m_szName[21]; //该obj的名称
long m_lCurSize; //当前obj的大小
cParser *m_pParser;
public:
CObjDes(cParser* p);
virtual ~CObjDes();
BOOL AddMember(char* szName, TYPEDES& dt);
char* GetObjName();
BOOL SetName(char* szName);
long GetSize();
OBJDES *GetMemberByName(char* szName);
};
#endif // !defined(AFX_OBJDES_H__E44F0C3A_50BE_4A41_A6EB_0FF96E86CE57__INCLUDED_)