 |
RDKit
Open-source cheminformatics and machine learning.
|
Go to the documentation of this file.
12 #ifndef RD_RXNPICKLE_H_2JUNE2009
13 #define RD_RXNPICKLE_H_2JUNE2009
25 class ChemicalReaction;
29 :
public std::exception {
33 const char *
message()
const {
return _msg.c_str(); };
66 unsigned int propertyFlags);
72 unsigned int propertyFlags) {
77 unsigned int propertyFlags);
83 unsigned int propertyFlags) {
89 static void reactionFromPickle(
const std::string &
pickle,
106 unsigned int propertyFlags);
109 static void _depickle(std::istream &ss,
ChemicalReaction *rxn,
int version);
112 static void _pickleProperties(std::ostream &ss,
const RDProps &props,
113 unsigned int pickleFlags);
115 static void _unpickleProperties(std::istream &ss,
RDProps &props);
const char * message() const
static void pickleReaction(const ChemicalReaction &rxn, std::string &res)
RDKIT_CHEMREACTIONS_EXPORT void pickle(const boost::shared_ptr< EnumerationStrategyBase > &enumerator, std::ostream &ss)
pickles a EnumerationStrategy and adds the results to a stream ss
static void reactionFromPickle(const std::string &pickle, ChemicalReaction &rxn)
static void pickleReaction(const ChemicalReaction &rxn, std::ostream &ss, unsigned int propertyFlags)
ReactionPicklerException(const std::string msg)
static void reactionFromPickle(std::istream &ss, ChemicalReaction &rxn)
static const std::int32_t versionMajor
mark the pickle version
used to indicate exceptions whilst pickling (serializing) reactions
ReactionPicklerException(const char *msg)
static void pickleReaction(const ChemicalReaction &rxn, std::ostream &ss)
static void reactionFromPickle(const std::string &pickle, ChemicalReaction *rxn)
static void pickleReaction(const ChemicalReaction &rxn, std::string &res, unsigned int propertyFlags)
~ReactionPicklerException()
This is a class for storing and applying general chemical reactions.
static const std::int32_t versionMinor
mark the pickle version
#define RDKIT_CHEMREACTIONS_EXPORT
handles pickling (serializing) reactions
static void pickleReaction(const ChemicalReaction *rxn, std::ostream &ss, unsigned int propertyFlags)
pickles a reaction and sends the results to stream ss
static const std::int32_t endianId
static const std::int32_t versionPatch
mark the pickle version