On Sun, Feb 01, 2009 at 02:49:26AM -0500, Josh Kropf wrote: > I was just working on the save module command in bjavaloader and I have > a question regarding all the public methods in JavaLoader class that > deal with file data (load, screenshot, save). > > Does it make sense to use the standard C++ iostream classes for these > methods instead of the Berry Data class?
Only if we support in-memory operation as well. I'd be interested in seeing some pseudo-code of what you had in mind. I don't want to lock users of the library into loading data to and from files. I don't think it is a good idea to force people to use iostreams either. I use them, but they are not everyone's cup of tea. COD files and screenshots could be loaded or saved from anywhere... applications may grab these files over a network, downloaded via HTTP, or stored in their own archives. The screenshot mechanism may just be used to display a 'semi-live' image of the device in real time and never get saved. All these uses must be allowed by the library. If iostreams can do that, I'm cautiously open to that, but I'd like to see an example before I make up my mind. - Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel