system file encapsulation into object

From: Valeri Tioukov (valeri@na.infn.it)
Date: Mon Nov 22 1999 - 18:53:41 MET


Hi rooters,

In my data storage system I'd like sometimes to assosiate with the Event
object complete files (small images) without parsing them by root.

I didn't find this functionality (very basic BTW) in standard root so I
made small class for this purpose: 

root> TObjFile f("../images/ttt.jpg");   // to read system file into root object
root> f.Write();                         // to write object into root file
root> f.WriteFile("new_ttt.jpg");        // to write system file from the object

I think this utility could be intersting not only for saving images, but
also for sorce code, text files associated with data, etc.

All code for this class could be found in
http://chorusdq.na.infn.it/TObjFile/

All comments are welcome

Regards
Valeri



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET