Debug = 2
class RarslaveMessage (object):
+
+ # Instance Variables:
+ # ==========================================================================
+ # msg -- The message to be printed
+ # type -- The type of message (Fatal, Normal, Verbose, or Debug)
+
def __init__ (self, msg, type=MessageType.Normal):
self.msg = msg
self.type = type
# This class will log multiple messages, one for each set that is operated on.
# It will then be able to print all of them out.
+ # Instance Variables:
+ # ==========================================================================
+ # __messages -- The list of RarslaveMessage()s to be printed later.
+
def __init__ (self):
self.__messages = []
class RarslaveExtractor (object):
- type = None
- heads = []
+ # Instance Variables
+ # ==========================================================================
+ # dir -- The directory in which this set lives
+ # p2files -- All PAR2 files in this set
+ # name_matched_files -- Files in this set, matched by name only
+ # prot_matched_files -- Files in this set, matched by parsing PAR2 files only
+ # type -- This set's type
+ # heads -- The heads to be extracted
def __init__ (self, dir, p2files, name_files, prot_files):
class PAR2Set (object):
- dir = None
- p2file = None # The starting par2
- basename = None # The p2file's basename
- all_p2files = []
- name_matched_files = [] # Files that match by basename of the p2file
- prot_matched_files = [] # Files that match by being protected members
+ # Instance Variables
+ # ==========================================================================
+ # dir -- The directory this set lives in
+ # p2file -- The starting PAR2 file
+ # basename -- The basename of the set, guessed from the PAR2 file
+ # all_p2files -- All PAR2 files of the set, guessed from the PAR2 file name only
+ # name_matched_files -- Files in this set, guessed by name only
+ # prot_matched_files -- Files in this set, guessed by parsing the PAR2 only
def __init__ (self, dir, p2file):
assert os.path.isdir (dir)