ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/Check.pm
Revision: 1.3
Committed: Thu Dec 8 15:43:43 2005 UTC (19 years, 5 months ago) by sashby
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
State: FILE REMOVED
Log Message:
Obsolete packages removed.

File Contents

# Content
1
2 BEGIN
3 {
4 print "ActiveDoc::Check: I AM used!","\n";
5 };
6
7 #
8 # Check.pm
9 #
10 # Originally Written by Christopher Williams
11 #
12 # Description
13 # -----------
14 # Base class --- checks should inherit from this
15 #
16 # Interface
17 # ---------
18 # new() : A new Check object
19 # check(dir) : check a directory for the libs
20 # errormessage() : Returns any messages from the last check
21 # _setmessage(string) : set the error message
22
23 package ActiveDoc::Check;
24 require 5.001;
25
26 sub new {
27 my $class=shift;
28 $self={};
29 bless $self, $class;
30 return $self;
31 }
32
33 sub _setmessage {
34 my $self=shift;
35 my $string=shift;
36
37 $self->{message}=$string;
38 }
39
40 sub errormessage {
41 my $self=shift;
42 return $self->{message};
43 }
44
45 # Dummy - always returns passed
46 sub check {
47 my $self=shift;
48 return 0;
49 }