home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / db02_src.zip / generate.h < prev    next >
C/C++ Source or Header  |  1993-11-05  |  2KB  |  69 lines

  1. /**************************************************************************
  2.  * Source Id :
  3.  *
  4.  * $Id: generate.h,v 1.9 1993/10/25 08:37:21 kevinl Exp $
  5.  *-------------------------------------------------------------------------
  6.  * Project Notes :
  7.  *
  8.  *  Diamond Base
  9.  *  ============
  10.  *      A solid database implementation, spurred on by the continuing
  11.  *  Metal (Lead) Base saga.
  12.  *
  13.  *  Project Team :
  14.  *        A. Davison
  15.  *        K. Lentin
  16.  *        D. Platt
  17.  *
  18.  *    Project Commenced : 05-02-1993
  19.  *
  20.  *-------------------------------------------------------------------------
  21.  *  Module Notes :
  22.  *
  23.  *  Header file for code generator
  24.  *
  25.  *
  26.  *  Original Author : Krazy Kev
  27.  *
  28.  *-------------------------------------------------------------------------
  29.  * Revision History:
  30.  *
  31.  * $Log: generate.h,v $
  32.  * Revision 1.9  1993/10/25  08:37:21  kevinl
  33.  * Added realData to typeName
  34.  *
  35.  * Revision 1.8  1993/10/24  15:35:45  kevinl
  36.  * Added derived class generation
  37.  *
  38.  * Revision 1.7  1993/10/19  11:43:02  kevinl
  39.  * Default values
  40.  *
  41.  * Revision 1.6  1993/10/18  08:01:41  kevinl
  42.  * Added constructors and fixed some probs
  43.  *
  44.  * Revision 1.5  1993/07/11  09:42:05  kevinl
  45.  * Changed String to dbString
  46.  *
  47.  * Revision 1.4  1993/06/23  05:21:22  kevinl
  48.  * Mallocs are now in angular brackets
  49.  *
  50.  * Revision 1.3  1993/06/20  13:39:04  kevinl
  51.  * New members for String support
  52.  *
  53.  * Revision 1.2  1993/05/07  13:54:35  kevinl
  54.  * Added outputFieldList so fields were in correct order for alignment
  55.  *
  56.  * Revision 1.1  1993/03/21  23:38:35  kevinl
  57.  * Initial revision
  58.  *
  59.  **************************************************************************/
  60.  
  61. #include <defs.h>
  62.  
  63. bool generateStart(ofstream& hf, ofstream& cf, char* filename);
  64. bool generateClass(ofstream& hf, ofstream& cf, long recLen, indexList* idxList, fieldList* fldList, char* structName, char* className, int stringCount, indexList* consList, char** defaults);
  65. bool generateEnd(ofstream& hf, ofstream& cf);
  66. bool generateDerived(dbString base, dbString derive, dbString deriveName, fieldList* fldList, indexList* consList);
  67. long mySizeOf(int tp);
  68. char* typeName(long tp, bool realData=false);
  69.