IMP logo

io.h File Reference

Handle read/write of Model data from/to files. More...

Include dependency graph for io.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

class  IMP::DumpModelOnFailure
 Dump the state of the model to a file on an error and then go on the the other handlers. More...

Namespaces

namespace  IMP
 The IMP kernel provides base classes and key shared functionality.

Functions

Model IO
Models can be written to files in an easy-to-read file format based on “name: value” pairs on separate lines with indentation used to indicated nesting (as in Python). The functions take a list of the particles to write/read. The particles need to be provided in the same order for reading and writing. This is not checked.

If a passed particle has a particle attribute which is a particle not in the list, an IOException is thrown. This can change to silently ignoring such attributes if desired.

Note:
If you are just interested in saving the state of a model during runtime, use an IMP::ConfigurationSet instead. It should be substantially faster.


void IMP::read_model (TextInput in, const ParticlesTemp &particles, Model *m)
void IMP::write_model (Model *m, const ParticlesTemp &particles, TextOutput out)

Detailed Description

Handle read/write of Model data from/to files.

Copyright 2007-2010 IMP Inventors. All rights reserved.


Generated on Mon Mar 8 23:05:44 2010 for IMP by doxygen 1.5.8