Package mmLib :: Module mmCIF :: Class mmCIFFileParser
[show private | hide private]
[frames | no frames]

Type mmCIFFileParser

object --+
         |
        mmCIFFileParser


Stateful parser which uses the mmCIFElementFile tokenizer to read a mmCIF file and convert it into the mmCIFData/mmCIFTable/mmCIFRow data hierarchy.
Method Summary
  gen_token_iter(self, fileobj)
  parse(self, token_iter, cif_file)
Stateful parser for mmCIF files.
  parse_file(self, fileobj, cif_file)
  split_token(self, tokx)
Returns the mmCIF token split into a 2-tuple: (reserved word, name) where directive is one of the mmCIF reserved words: data_, loop_, global_, save_, stop_
  syntax_error(self, err)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __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)

Method Details

parse(self, token_iter, cif_file)

Stateful parser for mmCIF files.

XXX: _loop, _data, _save tags are handled in a case-sensitive
     manor.  These tokens are case-insensitive.

split_token(self, tokx)

Returns the mmCIF token split into a 2-tuple: (reserved word, name) where directive is one of the mmCIF reserved words: data_, loop_, global_, save_, stop_

Generated by Epydoc 2.1 on Sun Apr 23 22:08:40 2006 http://epydoc.sf.net