Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

ex_tpcb.h

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1996-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: ex_tpcb.h,v 12.1 2005/06/16 20:22:06 bostic Exp $
00008  */
00009 
00010 #ifndef _TPCB_H_
00011 #define _TPCB_H_
00012 
00013 typedef enum { ACCOUNT, BRANCH, TELLER } FTYPE;
00014 
00015 #define TELLERS_PER_BRANCH      100
00016 #define ACCOUNTS_PER_TELLER     1000
00017 
00018 #define ACCOUNTS 1000000
00019 #define BRANCHES 10
00020 #define TELLERS 1000
00021 #define HISTORY 1000000
00022 #define HISTORY_LEN 100
00023 #define RECLEN 100
00024 #define BEGID   1000000
00025 
00026 typedef struct _defrec {
00027         u_int32_t       id;
00028         u_int32_t       balance;
00029         u_int8_t        pad[RECLEN - sizeof(u_int32_t) - sizeof(u_int32_t)];
00030 } defrec;
00031 
00032 typedef struct _histrec {
00033         u_int32_t       aid;
00034         u_int32_t       bid;
00035         u_int32_t       tid;
00036         u_int32_t       amount;
00037         u_int8_t        pad[RECLEN - 4 * sizeof(u_int32_t)];
00038 } histrec;
00039 #endif /* _TPCB_H_ */

Generated on Sun Dec 25 12:14:25 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2