29 #ifndef CDPL_CHEM_CMLMOLECULARGRAPHWRITER_HPP
30 #define CDPL_CHEM_CMLMOLECULARGRAPHWRITER_HPP
81 operator const void*()
const;
86 typedef std::unique_ptr<CMLDataWriter> CMLDataWriterPtr;
90 CMLDataWriterPtr 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
A writer for molecular graph data in the Chemical Markup Language [CML] format.
Definition: CMLMolecularGraphWriter.hpp:53
Base::DataWriter< MolecularGraph > & write(const MolecularGraph &molgraph)
Writes data of the molecular graph molgraph to the output stream specified in the constructor.
CMLMolecularGraphWriter(std::ostream &os)
Constructs a CMLMolecularGraphWriter instance that will write data of molecular graphs to the output ...
bool operator!() const
Tells whether the writer is in a bad state.
CMLMolecularGraphWriter & operator=(const CMLMolecularGraphWriter &)=delete
~CMLMolecularGraphWriter()
Destructor.
void close()
Writes format dependent data (if required) to mark the end of output.
CMLMolecularGraphWriter(const CMLMolecularGraphWriter &)=delete
MolecularGraph.
Definition: MolecularGraph.hpp:52
The namespace of the Chemical Data Processing Library.