Ejemplo n.º 1
0
    public cTrack FindTrack(string nodeName, string chName)
    {
        cTrack trk = null;
        int    idx = FindTrackIdx(nodeName, chName);

        if (idx >= 0)
        {
            trk = mTracks[idx];
        }
        return(trk);
    }
Ejemplo n.º 2
0
    protected int ReadTracks(string[] toks, int idx)
    {
        int n = mTracksNum;

        mTracks = new cTrack[n];
        for (int i = 0; i < n; ++i)
        {
            mTracks[i] = new cTrack(this);
            idx        = mTracks[i].Read(toks, idx);
        }
        mChanDict = new Dictionary <string, int>();
        for (int i = 0; i < n; ++i)
        {
            cTrack trk   = mTracks[i];
            string cpath = trk.ShortName + ":" + trk.ChannelName;
            mChanDict[cpath] = i;
        }
        return(idx);
    }