RDKit
Open-source cheminformatics and machine learning.
|
#include <MolWriters.h>
Public Member Functions | |
SDWriter (const std::string &fileName) | |
SDWriter (std::ostream *outStream, bool takeOwnership=false) | |
~SDWriter () override | |
void | setProps (const STR_VECT &propNames) override |
set a vector of property names that are need to be written out for each molecule | |
void | write (const ROMol &mol, int confId=defaultConfId) override |
write a new molecule to the file | |
void | flush () override |
flush the ostream | |
void | close () override |
close our stream (the writer cannot be used again) | |
unsigned int | numMols () const override |
get the number of molecules written so far | |
void | setForceV3000 (bool val) |
bool | getForceV3000 () const |
void | setKekulize (bool val) |
bool | getKekulize () const |
Public Member Functions inherited from RDKit::MolWriter | |
virtual | ~MolWriter () |
Static Public Member Functions | |
static std::string | getText (const ROMol &mol, int confId=defaultConfId, bool kekulize=true, bool force_V3000=false, int molid=-1, STR_VECT *propNames=nullptr) |
return the text that would be written to the file | |
The SDWriter is for writing molecules and properties to SD files
Definition at line 141 of file MolWriters.h.
RDKit::SDWriter::SDWriter | ( | const std::string & | fileName | ) |
fileName | : filename to write to ("-" to write to stdout) |
|
override |
|
inlineoverridevirtual |
close our stream (the writer cannot be used again)
Implements RDKit::MolWriter.
Definition at line 186 of file MolWriters.h.
|
inlineoverridevirtual |
flush the ostream
Implements RDKit::MolWriter.
Definition at line 171 of file MolWriters.h.
References PRECONDITION.
|
inline |
Definition at line 201 of file MolWriters.h.
|
inline |
Definition at line 204 of file MolWriters.h.
|
static |
return the text that would be written to the file
get the number of molecules written so far
Implements RDKit::MolWriter.
Definition at line 198 of file MolWriters.h.
Definition at line 200 of file MolWriters.h.
Definition at line 203 of file MolWriters.h.
set a vector of property names that are need to be written out for each molecule
Implements RDKit::MolWriter.
|
overridevirtual |
write a new molecule to the file
Implements RDKit::MolWriter.