/*************************************************************************** * Copyright (C) 2006 by Carsten Niehaus * Copyright (C) 2007-2008 by Marcus D. Hanwell ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef OPENBABEL2WRAPPER_H #define OPENBABEL2WRAPPER_H //includes for OpenBabel2 #include #include #include #include /** * @author Carsten Niehaus */ class COMPOUNDVIEWER_EXPORT OpenBabel2Wrapper { public: /** * This class reads the molecule in the file @p filename. It returns 0 if * the file couldn't be read. */ static Avogadro::Molecule* readMolecule( const QString& filename ); static bool writeMolecule( const QString& filename, Avogadro::Molecule* ); static QString getFormula( Avogadro::Molecule* molecule ); static QString getPrettyFormula( Avogadro::Molecule* molecule ); }; #endif // OPENBABEL2WRAPPER_H