OEDBWriter

Attention

This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.

class OEDBWriter

This class defines interface for writing a Brood database into a disk.

The OEDBWriter class defines the following public methods:

Constructors

OEDBWriter()

Constructor.

Finish

bool Finish()

Close database files and finalize the database. Method must be called to have a proper database.

Init

bool Init(const std::string &prefix, unsigned maxBufferSize)

Initialize the database for writing. The parameter prefix refers to the database folder name and file prefixes, and maxBufferSize refers to the maximum size of buffer for contents of each file before flashing.

Write

bool Write(OEChem::OEMCMolBase &mol)

Write the fragment in the database.