[openbeos] Re: state-keeping app

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Fri, 02 Aug 2002 05:40:50 CEST (+0200)

Ingo wrote:
> Actually I would provide the application programmer with a little bit 
> more comfortable interface. E.g. two new BApplication hook methods
> 
>   status_t StoreState(BDataIO *state);
>   status_t RestoreState(BDataIO *state);
> 
> A BDataIO should be better than a BMessage, as applications with a 
> greater amount of data to be saved/loaded certainly don't want to put 
> it into a BMessage first, whereas the others are free to internally 
> use 
> a BMessage and just Flatten() it to/Unflatten() it from the BDataIO.

Something like this would be cool - and it would allow for a system 
defined way of storing/restoring states at any time, not just on 
shutdown.

Adios...
   Axel.



Other related posts: