Home | Trees | Indices | Help |
---|
|
IteratorFactory --+ | oemolistreamFactory
Concrete implementation of an IteratorFactory that can produce a fresh cursor iterator over an oemolistream. This requires a reference to the filename so that a fresh "open" operation can be called on it each time.
If the filename represents stdin ("-"), then this approach will not work and requires a temporary file to be created.
|
|||
|
|||
|
|||
|
|
|||
TEMP_NAME = "%d%s" File descriptor and name of the file to open iterators for |
|||
fd = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSen
|
|||
filename = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.Sea
|
|||
tempFileFormat = -1
|
|
|
|
Primary abstract method where, that returns an iterator useable in a "for item in iterator:" construct. Based on the "iterable" interface, so no explicit function call is needed. If you want to though, you could do something like factory = FileFactory(filename); for item in iter(factory): print item; or just for item in factory: print item;
|
|
fd
|
filename
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Thu Nov 8 17:49:28 2007 | http://epydoc.sourceforge.net |