home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19683 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.6 KB

  1. Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!ugle.unit.no!alkymi.unit.no!robert
  2. From: robert@alkymi.unit.no (Robert Schmidt)
  3. Newsgroups: comp.lang.c++
  4. Subject: Publication database in C++
  5. Message-ID: <1993Jan21.180639.25365@ugle.unit.no>
  6. Date: 21 Jan 93 18:06:39 GMT
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: Norwegian Institute of Technology
  9. Lines: 35
  10.  
  11.  
  12. I wondered if anyone has a simple publication database realized in C++,
  13. or if you have good ideas and tips on how to implement it.
  14.  
  15. The database should be simple in that:
  16.  
  17. - the entire base is read in from a text file at program startup and kept 
  18.   in memory
  19. - the entire (modified?) base is written back to a text file at program
  20.   exit.
  21. This leads the mind to << and >> stream operators of course.
  22.  
  23. - no field definition is possible at run-time, i.e. no customizing is
  24.   available in that area.
  25. The class definitions are thus fixed at run time.
  26.  
  27. More challenging tasks follows:
  28.  
  29. - the records are variant, in that there are several fixed categories of
  30.   publications, i.e. different fields should be enabled/disabled for each
  31.   such category.
  32. - fields that are not needed for a given record should not consume space
  33.   in memory or in the disk file.
  34.  
  35. What the individual fields contain are not important, but there will be
  36. need for strings, numbers, dates, "check boxes"/"y or n", i.e. different
  37. sized/dynamically allocated fields.
  38.  
  39. Please reply with e-mail, as I seldom scan this  group.   If there is enough
  40. interest (if any :) I might summarize.
  41.  
  42. Thanks!
  43.  
  44.  
  45. robert@solan.unit.no
  46.