types.mco

来自「PB 熟悉的哥们希望大家可以互相学习一下」· MCO 代码 · 共 58 行

MCO
58
字号
/************************************************************
 *                                                          *
 * Copyright (c) 2001-2007 McObject LLC. All Right Reserved.*
 *                                                          *
 ************************************************************/

/* Demonstrates various data types supported by
 * eXtremeDB runtime
 */

#define int1      signed<1>
#define int2      signed<2>
#define int4      signed<4>
#define int8      signed<8>
#define uint8     unsigned<8>
#define uint4     unsigned<4>
#define uint2     unsigned<2>
#define uint1     unsigned<1>

declare database  typesdb;

struct Dyn
{
	string s;
};

struct DynStruct
{
	string s;
};
struct FixedStruct
{
	uint4 u4;
	uint8 u8;
};

class AllTypes
{
	time                            time_in;

	uint1                           u1;
	uint2             u2;
	uint4                           u4;
	uint8                           u8;

	vector<string>    vs;

	int4                vint4[200];				  /* integer array */
	FixedStruct fs[200];
	DynStruct       ds[100];

	blob blo;

	autoid[2000];
	list;

};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?