~ubuntu-branches/ubuntu/precise/kalzium/precise

« back to all changes in this revision

Viewing changes to compoundviewer/openbabel2wrapper.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-03 12:28:58 UTC
  • Revision ID: james.westby@ubuntu.com-20110703122858-q1yyxncs89e4w0hs
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *  Copyright (C) 2006 by Carsten Niehaus <cniehaus@kde.org>
 
3
 *  Copyright (C) 2007-2008 by Marcus D. Hanwell <marcus@cryos.org>
 
4
 ***************************************************************************/
 
5
 
 
6
/***************************************************************************
 
7
 *                                                                         *
 
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.                                   *
 
12
 *                                                                         *
 
13
 ***************************************************************************/
 
14
 
 
15
#ifndef OPENBABEL2WRAPPER_H
 
16
#define OPENBABEL2WRAPPER_H
 
17
 
 
18
//includes for OpenBabel2
 
19
#include <openbabel/obconversion.h>
 
20
#include <openbabel/mol.h>
 
21
#include <avogadro/molecule.h>
 
22
 
 
23
#include <libkdeedu_compoundviewer_export.h>
 
24
 
 
25
/**
 
26
 * @author Carsten Niehaus
 
27
 */
 
28
class COMPOUNDVIEWER_EXPORT OpenBabel2Wrapper
 
29
{
 
30
        public:
 
31
                /**
 
32
                 * This class reads the molecule in the file @p filename. It returns 0 if
 
33
                 * the file couldn't be read.
 
34
                 */
 
35
                static Avogadro::Molecule* readMolecule( const QString& filename );
 
36
 
 
37
    static bool writeMolecule( const QString& filename, Avogadro::Molecule* );
 
38
                
 
39
                static QString getFormula( Avogadro::Molecule* molecule );
 
40
                
 
41
                static QString getPrettyFormula( Avogadro::Molecule* molecule );
 
42
};
 
43
 
 
44
#endif // OPENBABEL2WRAPPER_H