29 #ifndef CDPL_CHEM_INCHIMOLECULARGRAPHWRITER_HPP
30 #define CDPL_CHEM_INCHIMOLECULARGRAPHWRITER_HPP
147 operator const void*()
const;
175 typedef std::vector<inchi_Atom> InChIAtomTable;
176 typedef std::vector<inchi_Stereo0D> InChIStereoInfoList;
177 typedef std::vector<char> StringData;
179 std::ostream& output;
180 InChIAtomTable inchiAtomTable;
181 InChIStereoInfoList inchiStereoInfo;
182 StringData inchiOptions;
183 bool strictErrorChecking;
186 std::string logOutput;
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 class CDPL::Base::DataWriter.
struct tagInchiAtom inchi_Atom
Definition: INCHIMolecularGraphWriter.hpp:41
struct tagINCHIStereo0D inchi_Stereo0D
Definition: INCHIMolecularGraphWriter.hpp:42
Interface for writing data objects of a given type to an arbitrary data sink.
Definition: DataWriter.hpp:63
Abstract base class representing a chemical atom and its bonded neighborhood.
Definition: Atom.hpp:57
Writer for molecular graph data in the IUPAC International Chemical Identifier (InChI) [INCHI] format...
Definition: INCHIMolecularGraphWriter.hpp:96
Base::DataWriter< MolecularGraph > & write(const MolecularGraph &molgraph)
Writes data of the molecular graph molgraph to the output stream specified in the constructor.
const std::string & getLogOutput() const
Returns the log output that was generated for the last write operation.
INCHIMolecularGraphWriter(std::ostream &os)
Constructs a INCHIMolecularGraphWriter instance that will write data of molecular graphs to the outpu...
~INCHIMolecularGraphWriter()
Destructor.
INCHIMolecularGraphWriter & operator=(const INCHIMolecularGraphWriter &)=delete
int getReturnCode() const
Returns the error code of the last write operation.
INCHIMolecularGraphWriter(const INCHIMolecularGraphWriter &)=delete
bool operator!() const
Tells whether a previous write operation has failed.
const std::string & getMessage() const
Returns the error message associated with the last write operation.
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
CDPL_CHEM_API void setRadicalType(Atom &atom, unsigned int type)
Sets the value of the Chem::AtomProperty::RADICAL_TYPE property of the atom atom to type.
CDPL_CHEM_API void setIsotope(Atom &atom, std::size_t isotope)
Sets the value of the Chem::AtomProperty::ISOTOPE property of the atom atom to isotope.
CDPL_CHEM_API void setFormalCharge(Atom &atom, long charge)
Sets the value of the Chem::AtomProperty::FORMAL_CHARGE property of the atom atom to charge.
The namespace of the Chemical Data Processing Library.