Package symbian :: Module log :: Class Parser |
[hide private]
[frames] | no frames]

# Class Parser

source code

    object --+
             |
            Parser

Generic Symbian log parser. You just need to derive that class an override few methods from the interface to implement your own functionnalities.

Instance Methods | [hide private]
__init__(self, fileobject) The constructor, it accepts a file object: parser = Parser(open('output.log', 'r')) | source code
parse(self) Function that run the parsing of the log. | source code
start_stage(self, name, date) Method to override to catch the start stage event. | source code
end_stage(self, name, date) Method to override to catch the end stage event. | source code
task(self, name, cmdline, dir, output) Method to override to catch the task event. | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, fileobject) (Constructor) | source code
The constructor, it accepts a file object: parser = Parser(open('output.log', 'r')) Overrides: object.__init__