#include <IMP/em/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...
|
|
Reader/writer for EM.
Definition at line 20 of file EMReaderWriter.h.
void IMP::em::EMReaderWriter::read |
( |
const char * |
filename, |
|
|
float ** |
data, |
|
|
DensityHeader & |
header |
|
) |
| |
|
virtual |
- Parameters
-
[in] | filename | name of the file to read |
[in] | data | pointer to the data |
[in] | header | DensityHeader() to store the header information |
- Exceptions
-
IOException | in case that the filename was not found |
Reimplemented from IMP::em::MapReaderWriter.
void IMP::em::EMReaderWriter::read_data |
( |
std::ifstream & |
file, |
|
|
float ** |
data, |
|
|
const internal::EMHeader & |
header |
|
) |
| |
|
protected |
- Parameters
-
file | ifstream of the file to read |
data | pointer to store the data |
header | internal::EMHeader to store the header information |
- Exceptions
-
IOException | if the data allocation had failed |
IOException | is the requested data type is not implemented |
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 |
|
) |
| |
|
virtual |
- 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 |
- Parameters
-
[in] | s | |
[in] | header | internal::EMHeader with the header information |
- Exceptions
-
IOException | if the writing operation had failed. |
The documentation for this class was generated from the following file: