8#ifndef IMPEM_SPIDER_READER_WRITER_H
9#define IMPEM_SPIDER_READER_WRITER_H
11#include <IMP/em/em_config.h>
38 bool skip_type_check_;
40 bool skip_extra_checkings_;
45 skip_type_check_ =
false;
46 force_reversed_ =
false;
47 skip_extra_checkings_ =
false;
60 bool force_reversed,
bool skip_extra_checkings) {
62 skip_type_check_ = skip_type_check;
63 force_reversed_ = force_reversed;
64 skip_extra_checkings_ = skip_extra_checkings;
66#if !defined(DOXYGEN) && !defined(SWIG)
74 void read(
const char *filename,
float **data,
84 void write(
const char *filename,
const float *data,
An abstract class for reading a map.
Functions to deal with very common math operations.
SpiderMapReaderWriter(String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings)
Full constructor.
void read(const char *filename, float **data, DensityHeader &header) override
Reads a map in Spider format and transfers the data and header.
void write(const char *filename, const float *data, const DensityHeader &header) override
Writes a map in Spider format from data and header.
Functions to deal with byte order.
Exception definitions and assertions.
Logging and error reporting support.
std::string String
Basic string value.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.