PDB objects and parsingΒΆ

Parsing and printing of PDB files is more complex than that of the other files. There are following components:

In general, one takes an input stream, recovers mdk::pdb::Data via mdk::pdb::Parser, converts it to a mdk::pdb::Model, then (after potentially modifying it) reduces it to a mdk::Model to pass to a mdk::Simulation. If one wants to print mdk::Model, a mdk::pdb::Data object can be generated from one (via mdk::pdb::Model), which can the written with the parser.

We also provide a framework wherewith one can add custom records to parse, see parsing for details.