# -*- cperl -*-
package RssC::Filter;
use strict;
use warnings;

sub new {
    my $class = shift;
    my $this = bless {} => $class;

    $this;
}

sub interested_p {
    # 眞僞値を返す。
    # 眞: このURIについては初めからGETメソッドを使用。
    #      またフィルタリング時にこのフィルタを使用。
    # 僞: このフィルタはこのURIに興味が無い。
    my ($this, $uri) = @_;

    die "Internal error: ".ref($this)." doesn't override want_content(\$uri)!\n";
}

sub filter {
    # フィルタ後の行を返す。
    my ($this, $uri, $line) = @_;

    die "Internal error: ".ref($this)." doesn't override filter(\$uri, \$line)!\n";
}

1;
