home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!ugle.unit.no!alkymi.unit.no!robert
- From: robert@alkymi.unit.no (Robert Schmidt)
- Newsgroups: comp.lang.c++
- Subject: Publication database in C++
- Message-ID: <1993Jan21.180639.25365@ugle.unit.no>
- Date: 21 Jan 93 18:06:39 GMT
- Sender: news@ugle.unit.no (NetNews Administrator)
- Organization: Norwegian Institute of Technology
- Lines: 35
-
-
- I wondered if anyone has a simple publication database realized in C++,
- or if you have good ideas and tips on how to implement it.
-
- The database should be simple in that:
-
- - the entire base is read in from a text file at program startup and kept
- in memory
- - the entire (modified?) base is written back to a text file at program
- exit.
- This leads the mind to << and >> stream operators of course.
-
- - no field definition is possible at run-time, i.e. no customizing is
- available in that area.
- The class definitions are thus fixed at run time.
-
- More challenging tasks follows:
-
- - the records are variant, in that there are several fixed categories of
- publications, i.e. different fields should be enabled/disabled for each
- such category.
- - fields that are not needed for a given record should not consume space
- in memory or in the disk file.
-
- What the individual fields contain are not important, but there will be
- need for strings, numbers, dates, "check boxes"/"y or n", i.e. different
- sized/dynamically allocated fields.
-
- Please reply with e-mail, as I seldom scan this group. If there is enough
- interest (if any :) I might summarize.
-
- Thanks!
-
-
- robert@solan.unit.no
-