![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <MolWriters.h>
Public Member Functions | |
| TDTWriter (const std::string &fileName) | |
| TDTWriter (std::ostream *outStream, bool takeOwnership=false) | |
| ~TDTWriter () 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 | setWrite2D (bool state=true) |
| bool | getWrite2D () const |
| void | setWriteNames (bool state=true) |
| bool | getWriteNames () const |
| void | setNumDigits (unsigned int numDigits) |
| unsigned int | getNumDigits () const |
Public Member Functions inherited from RDKit::MolWriter | |
| virtual | ~MolWriter () |
The TDTWriter is for writing molecules and properties to TDT files
Definition at line 219 of file MolWriters.h.
| RDKit::TDTWriter::TDTWriter | ( | 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 259 of file MolWriters.h.
|
inlineoverridevirtual |
flush the ostream
Implements RDKit::MolWriter.
Definition at line 244 of file MolWriters.h.
References PRECONDITION.
Definition at line 284 of file MolWriters.h.
|
inline |
Definition at line 278 of file MolWriters.h.
|
inline |
Definition at line 281 of file MolWriters.h.
get the number of molecules written so far
Implements RDKit::MolWriter.
Definition at line 275 of file MolWriters.h.
Definition at line 283 of file MolWriters.h.
set a vector of property names that are need to be written out for each molecule
Implements RDKit::MolWriter.
Definition at line 277 of file MolWriters.h.
Definition at line 280 of file MolWriters.h.
|
overridevirtual |
write a new molecule to the file
Implements RDKit::MolWriter.