home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.eiffel
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!gmaughan
- From: gmaughan@monu6.cc.monash.edu.au (Glenn Maughan)
- Subject: How to check for state changed in objects?
- Message-ID: <1992Aug16.043924.25105@monu6.cc.monash.edu.au>
- Organization: Monash University, Caulfield Campus
- Date: Sun, 16 Aug 1992 04:39:24 GMT
- Lines: 39
-
- Does anyone know if there is a mechanism for checking if an object
- has changed state? I am trying to implement incremental persistence and
- need to know if an object has changed state when compared to the same object
- on disk.
-
- Is there a way to do it in Eiffel code. If there is a way
- in version 3 I would like to know also.
-
- I located the definition for OBJECT in the C code of Eiffel 2.3
- (finding it wasn't a pleasant experience).
-
- typedef struct OBJECT {
- INFO info;
- ...
- long date; <-- can this be used?
- } OBJECT, *OBJPTR;
-
-
- Does the date item hold information about the creation date? Would I be able
- to use it?
-
- I would prefer to stay away from writing low level C to do check this.
- I have also thought of checking state changed by making a copy of all
- attributes in an object, but that defeats the purpose of making efficient
- persistent mechanisms.
-
- Any ideas?
-
- Glenn Maughan
- Software Development Honours
- Monash University
- gmaughan@monu6.cc.monash.edu.au
-
-
- --
- --------------------------------------------------------
- Glenn Maughan
- Software Development Honours
- email: gmaughan@monu6.cc.monash.edu.au
-