File: fileformat.h

package info (click to toggle)
ghemical 1.01-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,984 kB
  • ctags: 19,443
  • sloc: ansic: 69,073; cpp: 60,583; fortran: 35,324; sh: 5,419; makefile: 506; perl: 91
file content (140 lines) | stat: -rw-r--r-- 5,748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/**********************************************************************
Copyright (C) 2000-2002 by Geoffrey R. Hutchison

This file is part of the Open Babel project.
For more information, see <http://openbabel.sourceforge.net/>

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 version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
***********************************************************************/

#ifndef OB_FILEFORMAT_H
#define OB_FILEFORMAT_H

#ifdef __sgi
#include <iostream.h>
#include <fstream.h>
#else
#include <iostream>
#include <fstream>
#endif

#include <algorithm>
#include <vector>
#include <string>

namespace OpenBabel {

class OBMol;

class OBFileFormat
{
 public:
  OBFileFormat(void) {}
  ~OBFileFormat(void) {}

  bool ReadMolecule(std::istream &,OBMol &, char *title="Untitled");
  bool WriteMolecule(std::ostream &,OBMol &, char *dimension="3D", char *options="");

 private:
};

// Read Method prototypes
bool ReadAlchemy(std::istream &, OBMol &, char *title="Untitled");
bool ReadAmberPrep(std::istream &, OBMol &, char *title="Untitled");
bool ReadBallAndStick(std::istream &,OBMol &,char *title="Untitled");
bool ReadBinary(std::istream&,OBMol&);
bool ReadBinary(unsigned char*,OBMol&,int);
bool ReadBinary(std::istream&,unsigned char **);
bool ReadBiosymCAR(std::istream &, OBMol &, char *title="Untitled");
bool ReadBox(std::istream &, OBMol &,char *title="Untitled");
bool ReadBox(std::vector<std::string>&, OBMol &,char *title="Untitled");
bool ReadCaccrt(std::istream &, OBMol &, char *title="Untitled");
bool ReadCCC(std::istream &,OBMol &,char *title="Untitled");
bool ReadChem3d1(std::istream &,OBMol &,char *title="Untitled");
bool ReadChem3d2(std::istream &,OBMol &,char *title="Untitled");
bool ReadCML(std::istream &,OBMol &,char *title="Untitled");
bool ReadDMol(std::istream &,OBMol &,char *title="Untitled");
bool ReadFeat(std::istream &, OBMol &, char *title="Untitled");
bool ReadGAMESS(std::istream &, OBMol &, char *title="Untitled");
bool ReadGhemical(std::istream &,OBMol&,char *title="Untitled");
bool ReadHIN(std::istream &, OBMol &, char *title="Untitled");
bool ReadJaguar(std::istream &, OBMol &, char *title="Untitled");
bool ReadMacroModel(std::istream &,OBMol&,char *title="Untitled");
bool ReadMmads(std::istream &,OBMol&,char *title="Untitled");
bool ReadMol2(std::istream &,OBMol &,char *title="Untitled");
bool ReadMOPAC(std::istream &, OBMol &, char *title="Untitled");
bool ReadMOPACCartesian(std::istream &, OBMol &, char *title="Untitled");
bool ReadMPQC(std::istream &, OBMol &, char *title="Untitled");
bool ReadNWChem(std::istream &,OBMol &,char *title="Untitled");
bool ReadPDB(std::istream &,OBMol &,char *title="Untitled");
bool ReadPDB(std::vector<std::string> &,OBMol &,char *title="Untitled");
bool ReadQChem(std::istream &, OBMol &, char *title="Untitled");
bool ReadSDFile(std::istream &,OBMol &,char *title="Untitled");
bool ReadSmiles(std::istream &,OBMol &,char *title="Untitled");
bool ReadTerTermPDB(std::istream &,OBMol &,char *title="Untitled");
bool ReadUnichem(std::istream &, OBMol &, char *title="Untitled");
bool ReadViewMol(std::istream &, OBMol &, char *title="Untitled");
bool ReadXYZ(std::istream &,OBMol &,char *title="Untitled");
// Add yours here

// Write Method prototypes
bool SmiToMol(OBMol &,std::string &smi, char *title = "");
bool WriteAlchemy(std::ostream &, OBMol &);
bool WriteBallAndStick(std::ostream &,OBMol &);
bool WriteBGF(std::ostream &, OBMol &);
bool WriteBinary(std::ostream&,OBMol&);
bool WriteBinary(unsigned char*,int&,OBMol&);
bool WriteBox(std::ostream &,OBMol &,float margin);
bool WriteCaccrt(std::ostream &,OBMol &);
bool WriteCacaoInternal(std::ostream &,OBMol &);
bool WriteCache(std::ostream &,OBMol &);
bool WriteChem3d1(std::ostream &,OBMol &);
bool WriteChem3d2(std::ostream &,OBMol &);
bool WriteChemDraw(std::ostream &,OBMol &);
bool WriteCML(std::ostream &,OBMol &, char *dimension="3D", char *options="");
bool WriteCSR(std::ostream &,OBMol &);
bool WriteCSSR(std::ostream &,OBMol &);
bool WriteDelphiPDB(std::ostream&,OBMol&);
bool WriteDMol(std::ostream &,OBMol &);
bool WriteFeat(std::ostream &,OBMol &);
bool WriteFenskeZmat(std::ostream &,OBMol &);
bool WriteFixFile(std::ostream&,OBMol&);
bool WriteGAMESS(std::ostream &,OBMol &);
bool WriteGhemical(std::ostream &,OBMol &); 
bool WriteGromos96A(std::ostream &,OBMol &);
bool WriteGromos96N(std::ostream &,OBMol &);
bool WriteGaussianCart(std::ostream &,OBMol &);
bool WriteHIN(std::ostream &, OBMol &);
bool WriteJaguar(std::ostream &, OBMol &);
bool WriteMacroModel(std::ostream &,OBMol &);
bool WriteMmads(std::ostream &,OBMol &);
bool WriteMol2(std::ostream &,OBMol &,char *dimension="3D");
bool WriteMOPACCartesian(std::ostream &,OBMol &);
bool WriteNWChem(std::ostream &,OBMol&);
bool WritePDB(std::ostream &, OBMol&);
bool WriteQChem(std::ostream &,OBMol &);
bool WriteReport(std::ostream &,OBMol &);
bool WriteSDFile(std::ostream &,OBMol &,char *dimension="3D");
bool WriteSmiles(std::ostream &,OBMol &,char *title=NULL);
//test
bool WriteSmiOrderedMol2(std::ostream &,OBMol &,char *dimension="3D");
//test
bool WriteTheSmiles(OBMol&,char*);
bool WriteTinker(std::ostream &,OBMol &);
bool WriteTitles(std::ostream &,OBMol &);
bool WriteUnichem(std::ostream &,OBMol &);
bool WriteViewMol(std::ostream &,OBMol &);
bool WriteXED(std::ostream &,OBMol &);
bool WriteXYZ(std::ostream &,OBMol &);
// Add yours here

}

#endif