1
/***************************************************************************
2
* Copyright (C) 2006 by Carsten Niehaus <cniehaus@kde.org>
3
* Copyright (C) 2007-2008 by Marcus D. Hanwell <marcus@cryos.org>
4
***************************************************************************/
6
/***************************************************************************
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
***************************************************************************/
15
#ifndef OPENBABEL2WRAPPER_H
16
#define OPENBABEL2WRAPPER_H
18
//includes for OpenBabel2
19
#include <openbabel/obconversion.h>
20
#include <openbabel/mol.h>
21
#include <avogadro/molecule.h>
23
#include <libkdeedu_compoundviewer_export.h>
26
* @author Carsten Niehaus
28
class COMPOUNDVIEWER_EXPORT OpenBabel2Wrapper
32
* This class reads the molecule in the file @p filename. It returns 0 if
33
* the file couldn't be read.
35
static Avogadro::Molecule* readMolecule( const QString& filename );
37
static bool writeMolecule( const QString& filename, Avogadro::Molecule* );
39
static QString getFormula( Avogadro::Molecule* molecule );
41
static QString getPrettyFormula( Avogadro::Molecule* molecule );
44
#endif // OPENBABEL2WRAPPER_H