terom@41: """ terom@50: An IRC logfile consists of a series of lines/events terom@41: """ terom@41: terom@50: class LogTypes : terom@50: """ terom@50: Definitions of the various LogLines types terom@50: """ terom@50: terom@50: # unknown type, may or may not have a timestamp, no source, only data terom@50: RAW = 0x01 terom@50: terom@50: class LogLine (object) : terom@41: """ terom@41: An event on some specific channel terom@41: """ terom@41: terom@64: # the offset, only garunteed to be unique for a specific channel and date terom@64: offset = None terom@64: terom@50: # the event type, as defiend in LogTypes terom@41: type = None terom@41: terom@41: # the UTC timestamp of the event terom@41: timestamp = None terom@41: terom@41: # the event source terom@41: source = None terom@41: terom@41: # associated data (message, etc) terom@41: data = None terom@50: terom@64: def __init__ (self, offset, type, timestamp, source, data) : terom@50: """ terom@50: Initialize with given values terom@50: """ terom@64: terom@64: self.offset = offset terom@50: self.type = type terom@50: self.timestamp = timestamp terom@50: self.source = source terom@50: self.data = data terom@50: