// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   TBranchObject.java

package hep.rootio.reps;

import hep.rootio.*;
import hep.rootio.implementation.*;
import hep.rootio.interfaces.TBranch;

import java.io.IOException;

// Referenced classes of package hep.rootio.reps:
//            TBranch

public class TBranchObject extends SpecificRootObject
{

    public TBranchObject()
    {
    }

    public void readMembers(RootInput in, int v)
        throws IOException
    {
        super.readMembers(in, v);
        cf = in.getFactory();
    }

    public Object getEntry(int index)
        throws IOException, RootClassNotFound
    {
        try
        {
            boolean hollow = ((Integer)get("fEntryNumber")).intValue() == 0;
            if(!hollow)
            {
                hep.rootio.reps.TBranch sup = (hep.rootio.reps.TBranch)getSuperClass("TBranch");
                return sup.getEntry(index);
            } else
            {
                HollowRootObject ho = (HollowRootObject)cf.create(get("fClassName").toString()).newInstance();
                ho.setHollow((TBranch)getProxy());
                ho.setHollowIndex(index);
                return ho;
            }
        }
        catch(RootClassNotFound x)
        {
            x.printStackTrace();
            throw x;
        }
    }

    private RootClassFactory cf;
}

 

Ads help maintain this website.