9 #ifndef IMPEM_EM_READER_WRITER_H
10 #define IMPEM_EM_READER_WRITER_H
12 #include <IMP/em/em_config.h>
15 #include "internal/EMHeader.h"
20 class IMPEMEXPORT EMReaderWriter :
public MapReaderWriter
23 #if !defined(DOXYGEN) && !defined(SWIG)
31 void read(
const char *filename,
float **data, DensityHeader &header);
38 void write(
const char* filename,
const float *data,
39 const DensityHeader &header);
48 void read_header(std::ifstream &file, internal::EMHeader &header);
57 void read_data(std::ifstream &file,
float **data,
58 const internal::EMHeader &header);
65 void write_header(std::ostream& s,
const internal::EMHeader &header);