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

Class PickleResultReader
source code

                 object --+            
                          |            
        extension.Extension --+        
                              |        
     result_reader.ResultReader --+    
                                  |    
file_result_reader.FileResultReader --+
                                      |
                                     PickleResultReader

A 'PickleResultReader' reads in results from pickle files.

See also 'PickleResultStream', which does the reverse.

Nested Classes [hide private]

Inherited from file_result_reader.FileResultReader: InvalidFile

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, arguments=None, **args)
Construct a new 'FileResultReader'.
  _ResetUnpickler(self)
  _ReadAddress(self)
  _ReadMetadata(self)
  GetAnnotations(self)
Return this run's dictionary of annotations.
  GetResult(self)
Return the next 'Result' from this reader.

Inherited from result_reader.ResultReader: __iter__

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from file_result_reader.FileResultReader: arguments, file, filename

Inherited from result_reader.ResultReader: kind

Inherited from object: __class__


Method Details [hide private]

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

source code 

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: file_result_reader.FileResultReader.__init__
(inherited documentation)

_ResetUnpickler(self)

source code 

_ReadAddress(self)

source code 

_ReadMetadata(self)

source code 

GetAnnotations(self)

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

GetResult(self)

source code 

Return the next 'Result' from this reader.

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