Chinese DataBase用名字空间
更多...
组合类型 |
struct | FieldType |
class | Field |
class | FieldFixed |
| 固定长度数据字段实现类 更多...
|
class | FieldDynamic |
| 动态数据长度字段实现类 更多...
|
class | Table |
| CDB表格类 更多...
|
struct | cdb_type_name_convert |
类型定义 |
typedef List< FieldType > | FieldTypeList |
枚举 |
enum | BaseType {
cbtNone = 0,
cbtInt8,
cbtInt16,
cbtInt32,
cbtUint8,
cbtUint16,
cbtUint32,
cbtFloat,
cbtChar,
cbtEnd
} |
函数 |
FieldType | ParseFieldType (const wchar_t *str) |
bool | ParseFieldType (FieldTypeList &, StringList &) |
Field * | CreateField (const WideString &name, FieldType &ft, Stream *str=NULL, int count=0) |
int | GetFieldSize (BaseType base, int count) |
| FIELD_GET_FUNC (GetInteger, int) |
| FIELD_GET_FUNC (GetUInteger, uint) |
| FIELD_GET_FUNC (GetFloat, float) |
| FIELD_GET_ARRAY_FUNC (GetInt8Array, int8, cbtInt8) |
| FIELD_GET_ARRAY_FUNC (GetInt16Array, int16, cbtInt16) |
| FIELD_GET_ARRAY_FUNC (GetInt32Array, int32, cbtInt32) |
| FIELD_GET_ARRAY_FUNC (GetUint8Array, uint8, cbtUint8) |
| FIELD_GET_ARRAY_FUNC (GetUint16Array, uint16, cbtUint16) |
| FIELD_GET_ARRAY_FUNC (GetUint32Array, uint32, cbtUint32) |
| FIELD_GET_ARRAY_FUNC (GetFloatArray, float, cbtFloat) |
变量 |
const cdb_type_name_convert | typename_convert_list [] |
const uchar | cdb_flag [11] = "CDB Table\x1A" |
const int | cdb_flag_len = 10 |
const float | cdb_ver = 6.0 |
详细描述
类型定义文档
枚举类型文档
字段基本枚兴趣
- 枚举值:
cbtNone |
|
cbtInt8 |
|
cbtInt16 |
|
cbtInt32 |
|
cbtUint8 |
|
cbtUint16 |
|
cbtUint32 |
|
cbtFloat |
|
cbtChar |
|
cbtEnd |
|
函数文档
Field * hgl::cdb::CreateField |
( |
const WideString & |
name, |
|
|
FieldType & |
ft, |
|
|
Stream * |
str = NULL , |
|
|
int |
count = 0 |
|
) |
| |
创建一个字段
- 参数:
-
name | 字段名称 |
ft | 字段类型 |
str | 字段数据输入流 |
count | 字段数据输入个数 |
- 返回:
- 字段指针
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetInt8Array |
, |
|
|
int8 |
, |
|
|
cbtInt8 |
|
|
) |
| |
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetInt16Array |
, |
|
|
int16 |
, |
|
|
cbtInt16 |
|
|
) |
| |
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetInt32Array |
, |
|
|
int32 |
, |
|
|
cbtInt32 |
|
|
) |
| |
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetUint8Array |
, |
|
|
uint8 |
, |
|
|
cbtUint8 |
|
|
) |
| |
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetUint16Array |
, |
|
|
uint16 |
, |
|
|
cbtUint16 |
|
|
) |
| |
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetUint32Array |
, |
|
|
uint32 |
, |
|
|
cbtUint32 |
|
|
) |
| |
hgl::cdb::FIELD_GET_ARRAY_FUNC |
( |
GetFloatArray |
, |
|
|
float |
, |
|
|
cbtFloat |
|
|
) |
| |
hgl::cdb::FIELD_GET_FUNC |
( |
GetFloat |
, |
|
|
float |
|
|
) |
| |
hgl::cdb::FIELD_GET_FUNC |
( |
GetInteger |
, |
|
|
int |
|
|
) |
| |
hgl::cdb::FIELD_GET_FUNC |
( |
GetUInteger |
, |
|
|
uint |
|
|
) |
| |
int hgl::cdb::GetFieldSize |
( |
BaseType |
base, |
|
|
int |
count |
|
) |
| |
FieldType hgl::cdb::ParseFieldType |
( |
const wchar_t * |
str | ) |
|
bool hgl::cdb::ParseFieldType |
( |
FieldTypeList & |
ctl, |
|
|
StringList & |
type_list |
|
) |
| |
变量文档