IMP  2.3.1
The Integrative Modeling Platform
kernel/io.h File Reference

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

#include <IMP/kernel/kernel_config.h>
#include "OptimizerState.h"
#include "internal/utility.h"
#include <boost/format.hpp>
+ Include dependency graph for kernel/io.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 Synonym for IMP::kernel.
 
 IMP::kernel
 Base functionality and abstract base classes for representation, scoring and sampling.
 

Buffer I/O

Write/read the state of the particles to/from a buffer in memory.

Note
Not all particles need to have all the attributes, missing attributes will be skipped. However, the set of attributes must match on the write and read particles.
There is no handling of architectural issues. That is, this is only guaranteed to work if it is read and written on the same operating system and system bit length. We could probably fix this.
both these methods should be considered unstable.
base::Vector< char > IMP::kernel::write_particles_to_buffer (const ParticlesTemp &particles, const FloatKeys &keys)
 return a binary buffer with the data More...
 
void IMP::kernel::read_particles_from_buffer (const base::Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
 load found attributes into the particles More...
 

Detailed Description

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

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file kernel/io.h.