attribute.h
来自「有计算机图形学、图像处理、dbms、sniffer、中游俄罗斯外挂、othell」· C头文件 代码 · 共 47 行
H
47 行
// 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 + =
减小字号Ctrl + -
显示快捷键?