IMP  2.0.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 "file.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

namespace  IMP
 All IMP::kernel code is brought into the IMP namespace.
 
namespace  IMP::kernel
 See IMP.kernel Overview for more information.
 

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
 
void IMP::kernel::read_particles_from_buffer (const base::Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
 load found attributes into the particles
 

Detailed Description

Copyright 2007-2013 IMP Inventors. All rights reserved.

Definition in file kernel/io.h.