#include <MolWriters.h>

Public Member Functions | |
| SmilesWriter (std::string fileName, std::string delimiter=" ", std::string nameHeader="Name", bool includeHeader=true, bool isomericSmiles=false, bool kekuleSmiles=false) | |
| SmilesWriter (std::ostream *outStream, std::string delimiter=" ", std::string nameHeader="Name", bool includeHeader=true, bool takeOwnership=false, bool isomericSmiles=false, bool kekuleSmiles=false) | |
| ~SmilesWriter () | |
| void | setProps (const STR_VECT &propNames) |
| set a vector of property names that are need to be written out for each molecule | |
| void | write (ROMol &mol, int confId=defaultConfId) |
| write a new molecule to the file | |
| void | flush () |
| flush the ostream | |
| unsigned int | numMols () const |
| get the number of molecules written so far | |
Definition at line 30 of file MolWriters.h.
| RDKit::SmilesWriter::SmilesWriter | ( | std::string | fileName, | |
| std::string | delimiter = " ", |
|||
| std::string | nameHeader = "Name", |
|||
| bool | includeHeader = true, |
|||
| bool | isomericSmiles = false, |
|||
| bool | kekuleSmiles = false | |||
| ) |
| fileName | : filename to write to | |
| delimiter | : delimiter to use in the text file | |
| nameHeader | : used to label the name column in the output. If this is provided as the empty string, no names will be written. | |
| includeHeader | : toggles inclusion of a header line in the output | |
| isomericSmiles | : toggles generation of isomeric SMILES | |
| kekuleSmiles | : toggles the generation of kekule SMILES |
| RDKit::SmilesWriter::SmilesWriter | ( | std::ostream * | outStream, | |
| std::string | delimiter = " ", |
|||
| std::string | nameHeader = "Name", |
|||
| bool | includeHeader = true, |
|||
| bool | takeOwnership = false, |
|||
| bool | isomericSmiles = false, |
|||
| bool | kekuleSmiles = false | |||
| ) |
| RDKit::SmilesWriter::~SmilesWriter | ( | ) |
| void RDKit::SmilesWriter::setProps | ( | const STR_VECT & | propNames | ) | [virtual] |
set a vector of property names that are need to be written out for each molecule
Implements RDKit::MolWriter.
| void RDKit::SmilesWriter::write | ( | ROMol & | mol, | |
| int | confId = defaultConfId | |||
| ) | [virtual] |
| void RDKit::SmilesWriter::flush | ( | ) | [inline, virtual] |
flush the ostream
Implements RDKit::MolWriter.
Definition at line 74 of file MolWriters.h.
References PRECONDITION.
| unsigned int RDKit::SmilesWriter::numMols | ( | ) | const [inline, virtual] |
get the number of molecules written so far
Implements RDKit::MolWriter.
Definition at line 80 of file MolWriters.h.
1.5.6