Package mmLib :: Module PDB :: Class RecordProcessor
[show private | hide private]
[frames | no frames]

Class RecordProcessor

object --+
         |
        RecordProcessor


Implements the PDBFile's record_processor algorithm.
Method Summary
  __init__(self, pdb_file, processor, filter_func)
  call_processor(self, recs)
Invoke callbacks on self.processor for the given record list (recs).
  is_multi_record(self, rec)
Returns True if the record is a type supporting continuations or multiple records.
  is_sucsessive_record(self, prev_rec, rec)
Returns True if the current record looks like it is the sucessive PDB record in a list of records.
  process(self)
Iterates the PDB records in self, and searches for handling methods in the processor object for reading the objects.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __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)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Method Details

call_processor(self, recs)

Invoke callbacks on self.processor for the given record list (recs).

is_multi_record(self, rec)

Returns True if the record is a type supporting continuations or multiple records.

is_sucsessive_record(self, prev_rec, rec)

Returns True if the current record looks like it is the sucessive PDB record in a list of records. Filds like continuation and serNum are checked, as well as record name.

process(self)

Iterates the PDB records in self, and searches for handling methods in the processor object for reading the objects. There are several choices for methods names for the processor objects.

Generated by Epydoc 2.0 on Wed Nov 24 17:34:57 2004 http://epydoc.sf.net