Have a look ----- Dr.Valeri Fine STAR/US Atlas E-mail: fine@bnl.gov Brookhaven National Lab Phone: +1 631 344 7806 Upton, NY 11973-5000 FAX: +1 631 344 4206 USA ----- Original Message ----- From: "Brett Viren" <bv@bnl.gov> To: <roottalk@pcroot.cern.ch> Sent: Tuesday, January 22, 2002 11:10 AM Subject: [ROOT] Human readable/writeable I/O? > Hi, > > I have a container class: a heterogeneous map from string keys to > values of type char, int, double, string and itself (that is, it can > be used to form a hierarchical tree). Currently it can be be > read/written via ROOT streamers. It is typically used to hold > configuration data. > > I am looking for a way to write it out as plain text in a form that > can be edited in a text editor and subsequently read back in. > > Does anyone have any ideas? (Please, no XML). There is a virtual method: http://root.cern.ch/root/htmldoc/TObject.html#TObject:SavePrimitive There are plenty of other virtual methods: http://root.cern.ch/root/htmldoc/TObject.html#TObject:GetObjectInfo http://root.cern.ch/root/htmldoc/TObject.html#TObject:ShowMembers http://root.cern.ch/root/htmldoc/TObject.html#TObject:Inspect http://root.cern.ch/root/htmldoc/TObject.html#TObject:Browse http://root.cern.ch/root/htmldoc/TObject.html#TObject:Draw http://root.cern.ch/root/htmldoc/TObject.html#TObject:DrawClass http://root.cern.ch/root/htmldoc/TObject.html#TObject:Dump http://root.cern.ch/root/htmldoc/TObject.html#TObject:Print http://root.cern.ch/root/htmldoc/TObject.html#TObject:Paint STAR /Atlas use TDataSet / TTable classes SavePrimitive methods for this purposes. (see: http://www.usatlas.bnl.gov/computing/software/db/Chep2000.pdf ch.2.3 for some details) Best regards, Valeri
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET