[go: up one dir, main page]

Menu

[r6]: / metadata / data.h  Maximize  Restore  History

Download this file

46 lines (33 with data), 618 Bytes

 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
43
44
45
#ifndef __DATA_H__
#define __DATA_H__
#include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
struct CAttribute
{
char m_pcID[256];
int m_iType;
int m_iArray;
int m_iWidth;
};
class CTable
{
public:
CTable();
CTable(const CTable& t);
~CTable();
public:
int addAttr(const char* id, int type, int array, int width);
int serialize(vector<string>& table);
int deserialize(vector<string>& table);
void dispaly();
int size();
public:
char m_pcName[256];
vector<CAttribute> m_vAttr;
int m_iSize;
};
typedef CTable CView;
#endif