8 #ifndef INCLUDE_MOLASSEMBLER_SERIALIZATION_H
9 #define INCLUDE_MOLASSEMBLER_SERIALIZATION_H
15 #include "Molassembler/Export.h"
18 namespace Molassembler {
95 static std::string base64Encode(
const BinaryType& binary);
96 static BinaryType base64Decode(
const std::string& base64String);
122 operator std::
string() const;
126 BinaryType toBinary(BinaryFormat format) const;
154 std::unique_ptr<Impl> pImpl_;
Models a molecule as a graph (connectivity of atoms) and a list of stereopermutators.
Definition: Molecule.h:73
BinaryFormat
Binary formats that JSON can be encoded into and decoded from.
Definition: Serialization.h:85
Class representing a compact JSON serialization of a molecule.
Definition: Serialization.h:77
std::vector< std::uint8_t > BinaryType
Type used to represent binary JSON formats.
Definition: Serialization.h:82