www.pudn.com > AirAPIF.rar > air_tabledef.h


/* Copyright (C) FUJITSU LIMITED 1999-2001 */ 
/* $Id: air_tabledef.h,v 1.9 2001/03/13 15:17:06 JST age Exp $ */ 
/* This header file is public for users */ 
/* 
 * $Log: air_tabledef.h,v $ 
 * Revision 1.9  2001/03/13 15:17:06 JST  age 
 * 古川  AirDBDirection の typedef 追加 
 * 
 * Revision 1.8  2001/03/05 16:01:04 JST  age 
 * 古川  SymbolPort 追加、AirDBDirection 追加 
 * 
 * Revision 1.7  2000/07/05 15:53:21 JST  age 
 * 古川  AirDBIO に BUFFER と LINKAGE を追加 
 * 
 * Revision 1.6  2000/05/15 14:26:09 JST  age 
 * 古川  AirDBIO 修正 
 * 
 * Revision 1.5  2000/03/30 19:36:57 JST  age 
 * 古川  AIR_DB_IOBLOCK_TYPE の追加 
 * 
 * Revision 1.4  2000/03/13 15:55:12 JST  age 
 * コメント修正 
 * 
 * Revision 1.3  2000/03/07 15:27:44 JST  age 
 * コメント修正 
 * 
 * Revision 1.2  2000/03/03 17:09:46 JST  age 
 * *** empty log message *** 
 * 
 * $Com: 古川  AirDBDirection の typedef 追加 
 */ 
/* 
 * air_table.h の typedef を行う 
 */ 
 
#ifndef AIR_TABLEDEF_H 
#define AIR_TABLEDEF_H 
 
/* 整数定義のヘッダファイルを読み込む */ 
#include "air_stdint.h" 
 
 
typedef char    *AirDBString;                     /* 文字列 */ 
typedef uint32_t AirDBInt;                        /* 整数 */ 
typedef uint8_t  AirDBBit;                        /* 0 or 1 */ 
typedef uint32_t AirDBColor;                      /* 色情報 */ 
typedef uint32_t AirDBLID;                        /* 論理識別ID */ 
typedef uint32_t AirDBSize;                       /* ページサイズ */ 
 
typedef uint64_t AirDBAnyRef;                     /* ...の番地 */ 
typedef uint32_t AirDBPageRef;                    /* ...の番地 */ 
typedef uint32_t AirDBPageFigureRef;              /* ...の番地 */ 
typedef uint32_t AirDBPageCommentRef;             /* ...の番地 */ 
typedef uint32_t AirDBBlockRef;                   /* ...の番地 */ 
typedef uint32_t AirDBBlockInfoRef;               /* ...の番地 */ 
typedef uint32_t AirDBBlockSymbolRef;             /* ...の番地 */ 
typedef uint32_t AirDBStackRef;                   /* ...の番地 */ 
typedef uint32_t AirDBComponentRef;               /* ...の番地 */ 
typedef uint32_t AirDBComponentInfoRef;           /* ...の番地 */ 
typedef uint32_t AirDBSymbolRef;                  /* ...の番地 */ 
typedef uint64_t AirDBPortRef;                    /* ...の番地 */ 
typedef uint64_t AirDBPortInfoRef;                /* ...の番地 */ 
typedef uint32_t AirDBComponentPortRef;           /* ...の番地 */ 
typedef uint32_t AirDBComponentPortInfoRef;       /* ...の番地 */ 
typedef uint32_t AirDBSymbolPortRef;              /* ...の番地 */ 
typedef uint32_t AirDBNetRef;                     /* ...の番地 */ 
typedef uint32_t AirDBNetInfoRef;                 /* ...の番地 */ 
typedef uint32_t AirDBVectorRef;                  /* ...の番地 */ 
typedef uint32_t AirDBVectorInfoRef;              /* ...の番地 */ 
typedef uint32_t AirDBGroupRef;                   /* ...の番地 */ 
typedef uint32_t AirDBGroupInfoRef;               /* ...の番地 */ 
typedef uint32_t AirDBFigureRef;                  /* ...の番地 */ 
typedef uint32_t AirDBNameRef;                    /* ...の番地 */ 
typedef uint32_t AirDBTextRef;                    /* ...の番地 */ 
typedef uint32_t AirDBHashRef;                    /* ...の番地 */ 
typedef uint64_t AirDBApplDefRef;                 /* ...の番地 */ 
 
/* ...Ref の種類 */ 
enum AirDBKind { 
    AIR_DB_ANY_TYPE               = 0, 
    AIR_DB_ENV_TYPE               = 1, 
    AIR_DB_ARCHITECTURE_TYPE      = 2, 
    AIR_DB_PAGE_TYPE              = 3, 
    AIR_DB_PAGEFIGURE_TYPE        = 4, 
    AIR_DB_PAGECOMMENT_TYPE       = 5, 
    AIR_DB_BLOCK_TYPE             = 6, 
    AIR_DB_BLOCKINFO_TYPE         = 7, 
    AIR_DB_BLOCKSYMBOL_TYPE       = 8, 
    AIR_DB_STACK_TYPE             = 9, 
    AIR_DB_COMPONENT_TYPE         = 10, 
    AIR_DB_COMPONENTINFO_TYPE     = 11, 
    AIR_DB_SYMBOL_TYPE            = 12, 
    AIR_DB_PORT_TYPE              = 13, 
    AIR_DB_PORTINFO_TYPE          = 14, 
    AIR_DB_COMPONENTPORT_TYPE     = 15, 
    AIR_DB_COMPONENTPORTINFO_TYPE = 16, 
    AIR_DB_SYMBOLPORT_TYPE        = 17, 
    AIR_DB_NET_TYPE               = 18, 
    AIR_DB_NETINFO_TYPE           = 19, 
    AIR_DB_VECTOR_TYPE            = 20, 
    AIR_DB_VECTORINFO_TYPE        = 21, 
    AIR_DB_GROUP_TYPE             = 22, 
    AIR_DB_GROUPINFO_TYPE         = 23, 
    AIR_DB_FIGURE_TYPE            = 24, 
    AIR_DB_NAME_TYPE              = 25, 
    AIR_DB_TEXT_TYPE              = 26, 
    AIR_DB_HASH_TYPE              = 27, 
    AIR_DB_APPLDEF_TYPE           = 28, 
    AIR_DB_IOBLOCK_TYPE           = 29, 
    AIR_DB_KIND_NUM               = 30            /* AirDBKind の最後 */ 
}; 
 
/* 大文字小文字 */ 
enum AirDBLetter { 
    AIR_DB_LETTER_CAPITAL         = 0, 
    AIR_DB_LETTER_SMALL           = 1, 
    AIR_DB_LETTER_MIXED           = 2, 
    AIR_DB_LETTER_UTF8            = 3             /* 未使用 */ 
}; 
 
/* バイトオーダー */ 
enum AirDBByteOrder { 
    AIR_DB_BYTEORDER_NETWORK      = 0, 
    AIR_DB_BYTEORDER_LITTLEENDIAN = 1 
}; 
 
/* 入出力情報 */ 
enum AirDBIO { 
    AIR_DB_IO_UNDEFINED           = 0, 
    AIR_DB_IO_INPUT               = 1, 
    AIR_DB_IO_OUTPUT              = 2, 
    AIR_DB_IO_INOUT               = 3, 
    AIR_DB_IO_BUFFER              = 4, 
    AIR_DB_IO_LINKAGE             = 5 
}; 
 
/* 方向 */ 
enum AirDBDirection { 
    AIR_DB_DIR_UNDEFINED          = 0, 
    AIR_DB_DIR_RIGHT              = 1, 
    AIR_DB_DIR_LEFT               = 2, 
    AIR_DB_DIR_UP                 = 3, 
    AIR_DB_DIR_DOWN               = 4 
}; 
 
/* C 用 */ 
#ifndef  __cplusplus 
typedef enum AirDBKind AirDBKind; 
typedef enum AirDBLetter AirDBLetter; 
typedef enum AirDBByteOrder AirDBByteOrder; 
typedef enum AirDBIO AirDBIO; 
typedef enum AirDBDirection AirDBDirection; 
#endif 
 
#endif /* AIR_TABLEDEF_H */