-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdb_structure.h
64 lines (51 loc) · 1.87 KB
/
pdb_structure.h
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
/* The clust2 program.
* Copyright (C) 2024 Jakob Niessner.
* Contact: [email protected]
*
*
* This program was written at the Heidelberg Institute for theoretical studies,
* Schloß-Wolfsbrunnenweg 35, 69118 Heidelberg, Germany.
* Under the supervision of Prof. Dr. Rebecca C. Wade
* Contact: [email protected]
*
* Permission to use, copy, modify, and distribute this software and its
* documentation with or without modifications and for any purpose and
* without fee is hereby granted, provided that any copyright notices
* appear in all copies and that both those copyright notices and this
* permission notice appear in supporting documentation, and that the
* names of the contributors or copyright holders not be used in
* advertising or publicity pertaining to distribution of the software
* without specific prior permission.
*
* THE CONTRIBUTORS AND COPYRIGHT HOLDERS OF THIS SOFTWARE DISCLAIM ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE
* CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT
* OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
* OR PERFORMANCE OF THIS SOFTWARE.
*
*/
#ifndef PDB_H
#define PDB_H
//Defining struct for pdbfile_lines
typedef struct pdb_line{
char * line;
double x;
double y;
double z;
SLIST_ENTRY(pdb_line) next_line;
}pdb_line;
//Defining struct for list head
SLIST_HEAD(pdb_line_list, pdb_line);
//Defining struct for pdb_file
typedef struct pdb_struct{
char* name;
struct pdb_line* lines;
double** backbone_coordinates;
long atom_number;
long bb_atom_number;
}pdb_struct;
int read_pdb_file(pdb_struct* PDB, char Filename[]);
#endif