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

  1. /**************************************************************************
  2.  * Source Id :
  3.  *
  4.  * $Id: btdump.cc,v 1.4 1993/05/26 01:01:39 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.  *  Dump a btree
  24.  *
  25.  *
  26.  *  Original Author : Krazy Kev
  27.  *
  28.  *-------------------------------------------------------------------------
  29.  * Revision History:
  30.  *
  31.  * $Log: btdump.cc,v $
  32. // Revision 1.4  1993/05/26  01:01:39  kevinl
  33. // MALLOC_H_MISSING
  34. //
  35. // Revision 1.3  1993/05/06  04:00:19  kevinl
  36. // SASC define for malloc.h
  37. //
  38. // Revision 1.2  1993/04/08  15:14:02  davison
  39. // included stdlib.h
  40. //
  41. // Revision 1.1  1993/04/05  00:00:53  kevinl
  42. // Initial revision
  43. //
  44.  **************************************************************************/
  45.  
  46. #include <iostream.h>
  47. #include "btree.h"
  48. #ifndef MALLOC_H_MISSING
  49. #include <malloc.h>
  50. #endif
  51. #include <stdlib.h>
  52.  
  53. int
  54. main(int argc, char **argv)
  55. {
  56.     if (argc != 2)
  57.     {
  58.         cerr << "Syntax: " << argv[0] << " filename" << endl;
  59.         exit (1);
  60.     }
  61.  
  62.     bTree bt(argv[1], 0);
  63.     bt.dump();
  64. }
  65.