TFile alternative

Hello,

This is a bit of a naive question, but…
How difficult would it be to develop a TFile extended class to read custom file format that would be still compatible with basic root features?

Root is expecting virtual methods in my understanding, I am expecting that they can be overridden and still be used with TBrowser GUI, right? I basically know where my bytes are located and how to convert into ROOT objects, but I am not sure where is located these byte reading methods.

The TBrowser uses the ${ROOTSYS}/etc/root.mimes file to determine which action is associated with the file format. By default, one has to implement a Browse() method for his custom class, or specify any other action. Just take a look at the root.mimes file.

How difficult would it be to develop a TFile extended class

It should be relatively straight-forward and have been done a few time. See net/net/inc/T*File.h for access via a network rather than disk. See TSQLFile.h for storage in an SQL database.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.