--- nfo/perl/libs/OEF/Script/AbstractFeeder.pm 2003/02/11 09:48:57 1.2 +++ nfo/perl/libs/OEF/Script/AbstractFeeder.pm 2003/02/14 14:18:36 1.3 @@ -1,9 +1,12 @@ #!/usr/bin/perl ## -------------------------------------------------------------------------------- -## $Id: AbstractFeeder.pm,v 1.2 2003/02/11 09:48:57 joko Exp $ +## $Id: AbstractFeeder.pm,v 1.3 2003/02/14 14:18:36 joko Exp $ ## -------------------------------------------------------------------------------- ## $Log: AbstractFeeder.pm,v $ +## Revision 1.3 2003/02/14 14:18:36 joko +## + new get-/setter-methods +## ## Revision 1.2 2003/02/11 09:48:57 joko ## - moved notice output out of this module ## + some fixes @@ -28,6 +31,7 @@ use Data::Dumper; use Getopt::Long; +use Data::Transfer::Sync; # get logger instance @@ -52,7 +56,7 @@ exit; } -sub getoptions { +sub readoptions { my $self = shift; GetOptions( @@ -71,6 +75,18 @@ ); } +sub getoptions { + my $self = shift; + return $self->{opt}; +} + +sub setoptions { + my $self = shift; + my $options = shift; + # FIXME: is this really true? + $self->{opt} = $options; +} + sub getoptions_old { my $self = shift; GetOptions(