Mychem  0.9.3
 All Classes Files Functions Variables Macros
Functions
serialization.h File Reference
#include <openbabel/mol.h>
#include <mychem/structures.h>
Include dependency graph for serialization.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * serializeOBMol (OpenBabel::OBMol &mol)
 
bool unserializeOBMol (OpenBabel::OBBase *pOb, const char *serializedInput, bool stereoEnabled)
 

Function Documentation

char* serializeOBMol ( OpenBabel::OBMol &  mol)

Serialize an OBMol object.

Parameters
molThe OBMol object to serialize.
Returns
the serialized object.
bool unserializeOBMol ( OpenBabel::OBBase *  pOb,
const char *  serializedInput,
bool  stereoEnabled 
)

Unserialize an OBMol object.

Parameters
pObThe OBBase object to initialize.
serializedInputThe OBMol object to unserialize.
stereoEnabledtrue if we need stereo informations
Returns
true if the unserialization is successful.