Finalized binlogging update by removing another unnecessary opcode and updating the reader

This commit is contained in:
David Anderson
2006-08-21 04:18:13 +00:00
parent 45b67b6e2c
commit 5b47da7cee
9 changed files with 140 additions and 94 deletions

View File

@ -12,6 +12,7 @@ namespace BinLogReader
private string Filename;
private ArrayList Natives;
private ArrayList Publics;
private ArrayList Files;
private string title;
private string version;
private int index;
@ -70,11 +71,12 @@ namespace BinLogReader
}
}
public Plugin(string name, int natives, int publics, byte _status, int _index)
public Plugin(string name, int natives, int publics, int files, byte _status, int _index)
{
Filename = name;
Natives = new ArrayList(natives);
Publics = new ArrayList(publics);
Files = new ArrayList(files+1);
status = _status;
index = _index;
}
@ -89,18 +91,37 @@ namespace BinLogReader
Publics.Add(pubname);
}
public void AddFile(string filename)
{
Files.Add(filename);
}
public string FindNative(int id)
{
if (id < 0 || id >= Natives.Count)
{
return null;
}
return (string)Natives[id];
}
public string FindFile(int id)
{
if (id < 0 || id >= Files.Count)
{
return null;
}
return (string)Files[id];
}
public string FindPublic(int id)
{
if (id < 0 || id >= Publics.Count)
{
return null;
}
return (string)Publics[id];
}