-# $Id: IRSpy.pm,v 1.3 2006-06-20 16:32:03 mike Exp $
+# $Id: IRSpy.pm,v 1.4 2006-06-21 14:35:03 mike Exp $
package ZOOM::IRSpy;
my $this = bless {
conn => $conn,
allrecords => 1, # unless overridden by targets()
- # query and targets will be filled in later
+ query => undef, # filled in later
+ targets => undef, # filled in later
+ target2record => undef, # filled in later
+ pod => undef, # filled in later
}, $class;
$this->log("irspy", "starting up with database '$dbname'");
}
}
+ $this->{target2record} = \%target2record;
$this->{pod} = new ZOOM::Pod(@{ $this->{targets} });
+ delete $this->{targets}; # The information is now in the Pod.
+ delete $this->{query}; # Not needed at all
}
}
+# Access methods for the use of Test modules
+sub pod {
+ my $this = shift();
+ return $this->{pod};
+}
+
+sub record {
+ my $this = shift();
+ my($target) = @_;
+ return $this->{target2record}->{$target};
+}
+
+
+
=head1 SEE ALSO
ZOOM::IRSpy::Record