29 #ifndef CDPL_CHEM_SMILESMOLECULARGRAPHWRITER_HPP
30 #define CDPL_CHEM_SMILESMOLECULARGRAPHWRITER_HPP
45 class SMILESDataWriter;
156 operator const void*()
const;
160 typedef std::unique_ptr<SMILESDataWriter> SMILESDataWriterPtr;
162 std::ostream& output;
164 SMILESDataWriterPtr writer;
Definition of the preprocessor macro CDPL_CHEM_API.
#define CDPL_CHEM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of the class CDPL::Base::DataWriter.
An interface for writing data objects of a given type to an arbitrary data sink.
Definition: DataWriter.hpp:63
MolecularGraph.
Definition: MolecularGraph.hpp:52
A writer for molecular graph data in the Daylight SMILES [SMILES] format.
Definition: SMILESMolecularGraphWriter.hpp:130
SMILESMolecularGraphWriter(const SMILESMolecularGraphWriter &)=delete
bool operator!() const
Tells whether the writer is in a bad state.
SMILESMolecularGraphWriter(std::ostream &os)
Constructs a SMILESMolecularGraphWriter instance that will write data of molecular graphs to the outp...
Base::DataWriter< MolecularGraph > & write(const MolecularGraph &molgraph)
Writes data of the molecular graph molgraph to the output stream specified in the constructor.
SMILESMolecularGraphWriter & operator=(const SMILESMolecularGraphWriter &)=delete
~SMILESMolecularGraphWriter()
Destructor.
The namespace of the Chemical Data Processing Library.