Revision: | 1.1 |
Committed: | Thu Sep 23 10:33:56 1999 UTC (25 years, 7 months ago) by williamc |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | v102p1, V1_0_1, V1_0_0, V1_pre0, SCRAM_V1, SCRAMV1_IMPORT, V0_19_7, V0_19_6, V0_19_6p1, V0_19_5, SFATEST, V0_19_4, V0_19_4_pre3, V0_19_4_pre2, V0_19_4_pre1, V0_19_3, V0_19_2, V0_19_1, V0_19_0, V0_18_5, V0_18_4, V_18_3_TEST, VO_18_3, V0_18_2, V0_18_1, ProtoEnd |
Branch point for: | V1_pre1, SCRAM_V1_BRANCH, V0_19_4_B |
Log Message: | New check Base |
# | Content |
---|---|
1 | # |
2 | # Check.pm |
3 | # |
4 | # Originally Written by Christopher Williams |
5 | # |
6 | # Description |
7 | # ----------- |
8 | # Base class --- checks should inherit from this |
9 | # |
10 | # Interface |
11 | # --------- |
12 | # new() : A new Check object |
13 | # check(dir) : check a directory for the libs |
14 | # errormessage() : Returns any messages from the last check |
15 | # _setmessage(string) : set the error message |
16 | |
17 | package ActiveDoc::Check; |
18 | require 5.001; |
19 | |
20 | sub new { |
21 | my $class=shift; |
22 | $self={}; |
23 | bless $self, $class; |
24 | return $self; |
25 | } |
26 | |
27 | sub _setmessage { |
28 | my $self=shift; |
29 | my $string=shift; |
30 | |
31 | $self->{message}=$string; |
32 | } |
33 | |
34 | sub errormessage { |
35 | my $self=shift; |
36 | return $self->{message}; |
37 | } |
38 | |
39 | # Dummy - always returns passed |
40 | sub check { |
41 | my $self=shift; |
42 | return 0; |
43 | } |