RDCode: RDKit::SDWriter Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

# RDKit::SDWriter Class Reference

`#include <MolWriters.h>`

Inheritance diagram for RDKit::SDWriter:

List of all members.

## Public Member Functions
| SDWriter (std::string fileName)
| SDWriter (std::ostream *outStream, bool takeOwnership=false)
| ~SDWriter ()
void | setProps (const STR_VECT &propNames)
void | write (ROMol &mol, int confId=defaultConfId)
void | flush ()
unsigned int | numMols () const

## Detailed Description

Definition at line 91 of file MolWriters.h.

## Constructor & Destructor Documentation

RDKit::SDWriter::SDWriter | ( | std::string | fileName | ) |

RDKit::SDWriter::SDWriter | ( | std::ostream * | outStream,
|  | bool | takeOwnership = `false` |
| ) |  |  |

RDKit::SDWriter::~SDWriter | ( |  | ) |

## Member Function Documentation

void RDKit::SDWriter::setProps | ( | const STR_VECT & | propNames | ) | `[virtual]`

Implements RDKit::MolWriter.

void RDKit::SDWriter::write | ( | ROMol & | mol,
|  | int | confId = `defaultConfId` |
| ) |  |  | `[virtual]`

Implements RDKit::MolWriter.

void RDKit::SDWriter::flush | ( |  | ) | `[inline, virtual]`

Implements RDKit::MolWriter.

Definition at line 118 of file MolWriters.h.

References PRECONDITION.

unsigned int RDKit::SDWriter::numMols | ( |  | ) | const`[inline, virtual]`

Implements RDKit::MolWriter.

Definition at line 124 of file MolWriters.h.

The documentation for this class was generated from the following file:

- MolWriters.h