1 |
tim |
746 |
/********************************************************************** |
2 |
|
|
Copyright (C) 2000 by OpenEye Scientific Software, Inc. |
3 |
|
|
Some portions Copyright (C) 2001-2005 by Geoffrey R. Hutchison |
4 |
|
|
Some portions Copyright (C) 2004 by Chris Morley |
5 |
|
|
|
6 |
|
|
This program is free software; you can redistribute it and/or modify |
7 |
|
|
it under the terms of the GNU General Public License as published by |
8 |
|
|
the Free Software Foundation version 2 of the License. |
9 |
|
|
|
10 |
|
|
This program is distributed in the hope that it will be useful, |
11 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
|
GNU General Public License for more details. |
14 |
|
|
***********************************************************************/ |
15 |
|
|
#ifndef OB_AMBERFORMAT_HPP |
16 |
|
|
#define OB_AMBERFORMAT_HPP |
17 |
|
|
|
18 |
|
|
#include "mol.hpp" |
19 |
|
|
#include "obconversion.hpp" |
20 |
|
|
#include "obmolecformat.hpp" |
21 |
|
|
|
22 |
|
|
using namespace std; |
23 |
|
|
namespace OpenBabel |
24 |
|
|
{ |
25 |
|
|
|
26 |
|
|
class AmberPrepFormat : public OBMoleculeFormat |
27 |
|
|
{ |
28 |
|
|
public: |
29 |
|
|
//Register this format type ID |
30 |
|
|
AmberPrepFormat() |
31 |
|
|
{ |
32 |
|
|
OBConversion::RegisterFormat("prep",this); |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
virtual const char* Description() //required |
36 |
|
|
{ |
37 |
|
|
return |
38 |
|
|
"Amber Prep format\n \ |
39 |
|
|
Read Options e.g. -as\n\ |
40 |
|
|
s Output single bonds only\n\ |
41 |
|
|
b Disable bonding entirely\n\n"; |
42 |
|
|
}; |
43 |
|
|
|
44 |
|
|
virtual const char* SpecificationURL() |
45 |
|
|
{return "http://www.amber.ucsf.edu/amber/formats.html";}; //optional |
46 |
|
|
|
47 |
|
|
//Flags() can return be any the following combined by | or be omitted if none apply |
48 |
|
|
// NOTREADABLE READONEONLY NOTWRITABLE WRITEONEONLY |
49 |
|
|
virtual unsigned int Flags() |
50 |
|
|
{ |
51 |
|
|
return NOTWRITABLE; |
52 |
|
|
}; |
53 |
|
|
|
54 |
|
|
//////////////////////////////////////////////////// |
55 |
|
|
/// The "API" interface functions |
56 |
|
|
virtual bool ReadMolecule(OBBase* pOb, OBConversion* pConv); |
57 |
|
|
}; |
58 |
|
|
|
59 |
|
|
} |
60 |
|
|
#endif |