Package qm :: Package test :: Package classes :: Module pickle_result_stream :: Class PickleResultReader
[show private | hide private]
[frames | no frames]

Type PickleResultReader

object --+            
         |            
 Extension --+        
             |        
  ResultReader --+    
                 |    
  FileResultReader --+
                     |
                    PickleResultReader


A 'PickleResultReader' reads in results from pickle files.

See also 'PickleResultStream', which does the reverse.
Method Summary
  __init__(self, arguments, **args)
Construct a new 'FileResultReader'.
  GetAnnotations(self)
Return this run's dictionary of annotations.
  GetResult(self)
Return the next 'Result' from this reader.
    Inherited from ResultReader
  __iter__(self)
A 'ResultReader' can be iterated over.
    Inherited from Extension
  __getattr__(self, name)
  GetClassName(self)
Return the name of the extension class.
  GetExplicitArguments(self)
Return the arguments to this extension instance.
  MakeDomDocument(self)
Create a DOM document for 'self'.
  MakeDomElement(self, document, element)
Create a DOM node for 'self'.
  Write(self, file)
Write an XML description of 'self' to a file.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
NoneType file = None                                                                  
str filename = ''
    Inherited from FileResultReader
list arguments = [<<class 'qm.fields.TextField'> filename>, <...
    Inherited from ResultReader
str kind = 'result_reader'

Method Details

__init__(self, arguments=None, **args)
(Constructor)

Construct a new 'FileResultReader'.

'arguments' -- As for 'ResultReader'.

If the file provided is not in the input format expected by this result reader, the derived class '__init__' function must raise an 'InvalidStream' exception.
Overrides:
qm.test.file_result_reader.FileResultReader.__init__ (inherited documentation)

GetAnnotations(self)

Return this run's dictionary of annotations.
Overrides:
qm.test.result_reader.ResultReader.GetAnnotations (inherited documentation)

GetResult(self)

Return the next 'Result' from this reader.

returns -- A 'Result', or 'None' if there are no more results.
Overrides:
qm.test.result_reader.ResultReader.GetResult (inherited documentation)

Class Variable Details

file

Type:
NoneType
Value:
None                                                                  

filename

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Thu Sep 27 15:49:07 2007 http://epydoc.sf.net