MMTF-C++
The C++ language MMTF libraries
encoder.hpp File Reference
#include "structure_data.hpp"
#include "errors.hpp"
#include "object_encoders.hpp"
#include "binary_encoder.hpp"
#include <string>

Go to the source code of this file.

Namespaces

 mmtf
 

Functions

void mmtf::encodeToFile (const StructureData &data, const std::string &filename, int32_t coord_divider=1000, int32_t occupancy_b_factor_divider=100, int32_t chain_name_max_length=4)
 Encode an MMTF data structure into a file. More...
 
template<typename Stream >
void mmtf::encodeToStream (const StructureData &data, Stream &stream, int32_t coord_divider=1000, int32_t occupancy_b_factor_divider=100, int32_t chain_name_max_length=4)
 Encode an MMTF data structure into a stream. More...
 
std::map< std::string, msgpack::object > mmtf::encodeToMap (const StructureData &data, msgpack::zone &m_zone, int32_t coord_divider=1000, int32_t occupancy_b_factor_divider=100, int32_t chain_name_max_length=4)
 Encode an MMTF data structure into a map of msgpack objects. More...