#include <IMP/em/EMReaderWriter.h>
Reader/writer for EM.
Definition at line 20 of file EMReaderWriter.h.
|
void | read_data (std::ifstream &file, float **data, const internal::EMHeader &header) |
| Reads the data. More...
|
|
void | read_header (std::ifstream &file, internal::EMHeader &header) |
|
void | write_header (std::ostream &s, const internal::EMHeader &header) |
| Writes the header. More...
|
|
| Object (std::string name) |
| Construct an object with the given name. More...
|
|
virtual void | do_destroy () |
|
void IMP::em::EMReaderWriter::read |
( |
const char * |
filename, |
|
|
float ** |
data, |
|
|
DensityHeader & |
header |
|
) |
| |
|
overridevirtual |
Reads a density file in EM format and stores the information.
- Parameters
-
[in] | filename | name of the file to read |
[in] | data | pointer to the data |
[in] | header | DensityHeader() to store the header information |
- Exceptions
-
Reimplemented from IMP::em::MapReaderWriter.
void IMP::em::EMReaderWriter::read_data |
( |
std::ifstream & |
file, |
|
|
float ** |
data, |
|
|
const internal::EMHeader & |
header |
|
) |
| |
|
protected |
Reads the data.
- Parameters
-
file | ifstream of the file to read |
data | pointer to store the data |
header | internal::EMHeader to store the header information |
- Exceptions
-
void IMP::em::EMReaderWriter::read_header |
( |
std::ifstream & |
file, |
|
|
internal::EMHeader & |
header |
|
) |
| |
|
protected |
Reads the header Reads the data
- Parameters
-
file | ifstream of the file to read |
header | internal::EMHeader to store the header information |
void IMP::em::EMReaderWriter::write |
( |
const char * |
filename, |
|
|
const float * |
data, |
|
|
const DensityHeader & |
header |
|
) |
| |
|
overridevirtual |
Writes a density file in EM format with the header information.
- Parameters
-
[in] | filename | name of the file to read |
[in] | data | pointer to the data |
[in] | header | DensityHeader() with the header information |
Reimplemented from IMP::em::MapReaderWriter.
void IMP::em::EMReaderWriter::write_header |
( |
std::ostream & |
s, |
|
|
const internal::EMHeader & |
header |
|
) |
| |
|
protected |
Writes the header.
- Parameters
-
[in] | s | |
[in] | header | internal::EMHeader with the header information |
- Exceptions
-
The documentation for this class was generated from the following file: