📄 attribute.h
字号:
// Attribute.h: interface for the CAttribute class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ATTRIBUTE_H__B0D5CF5A_B247_4B29_AA2E_554B4D672C8E__INCLUDED_)
#define AFX_ATTRIBUTE_H__B0D5CF5A_B247_4B29_AA2E_554B4D672C8E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BplusTree.h"
class CBplusTree;
class CAttribute
{
public:
CString name;
BYTE name_length;//名字长不得超过10,name_length包括/0
WORD length;//指值的长,不包括/0和长度标志
BYTE type;
BYTE idx;
BYTE unq;
BYTE ispk;
BYTE can_null;
UINT rf_relationship;
WORD rf_Attribute;
UINT IndexMainFile;//索引主文件
CBplusTree *tree;
UINT offset;
public:
WORD GetLength();
CAttribute();
CAttribute & operator =(const CAttribute &A);
CAttribute(CString s,CString t,UINT le,bool unique,bool pk,bool nll,UINT rr=0,WORD ra=0);
//CAttribute(BYTE nl,CString s, BYTE t,UINT le,UINT rr=0,UINT ra=0);
void SetIndex(UINT IdxFlNo);
virtual ~CAttribute();
};
#endif // !defined(AFX_ATTRIBUTE_H__B0D5CF5A_B247_4B29_AA2E_554B4D672C8E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -