29 #ifndef CDPL_CHEM_INCHIMOLECULARGRAPHWRITER_HPP
30 #define CDPL_CHEM_INCHIMOLECULARGRAPHWRITER_HPP
212 operator const void*()
const;
240 typedef std::vector<inchi_Atom> InChIAtomTable;
241 typedef std::vector<inchi_Stereo0D> InChIStereoInfoList;
242 typedef std::vector<char> StringData;
244 std::ostream& output;
245 InChIAtomTable inchiAtomTable;
246 InChIStereoInfoList inchiStereoInfo;
247 StringData inchiOptions;
248 bool strictErrorChecking;
251 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:161
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 Chem::AtomProperty::RADICAL_TYPE property of atom to type (see namespace Chem::RadicalType).
CDPL_CHEM_API void setIsotope(Atom &atom, std::size_t isotope)
Sets the Chem::AtomProperty::ISOTOPE property of atom to isotope.
CDPL_CHEM_API void setFormalCharge(Atom &atom, long charge)
Sets the Chem::AtomProperty::FORMAL_CHARGE property of atom to charge.
The namespace of the Chemical Data Processing Library.