1 | /*
|
---|
2 | * Project: MoleCuilder
|
---|
3 | * Description: creates and alters molecular systems
|
---|
4 | * Copyright (C) 2010 University of Bonn. All rights reserved.
|
---|
5 | * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * TremoloAtomInfoContainer.cpp
|
---|
10 | *
|
---|
11 | * Created on: Dec 7, 2010
|
---|
12 | * Author: heber
|
---|
13 | */
|
---|
14 |
|
---|
15 | #include "TremoloAtomInfoContainer.hpp"
|
---|
16 |
|
---|
17 | #include <iostream>
|
---|
18 |
|
---|
19 |
|
---|
20 | TremoloAtomInfoContainer::TremoloAtomInfoContainer() :
|
---|
21 | F("0"),
|
---|
22 | stress("0"),
|
---|
23 | imprData("-"),
|
---|
24 | GroupMeasureTypeNo("0"),
|
---|
25 | extType("-"),
|
---|
26 | name("-"),
|
---|
27 | resName("-"),
|
---|
28 | chainID("0"),
|
---|
29 | resSeq("0"),
|
---|
30 | occupancy("0"),
|
---|
31 | tempFactor("0"),
|
---|
32 | segID("0"),
|
---|
33 | Charge("0"),
|
---|
34 | charge("0"),
|
---|
35 | GrpTypeNo("0"),
|
---|
36 | torsion("-"),
|
---|
37 | neighbors(std::vector<int>(0, 5)),
|
---|
38 | neighbors_processed(false)
|
---|
39 | {}
|
---|
40 |
|
---|
41 | void TremoloAtomInfoContainer::set(TremoloKey::atomDataKey key, std::string value) {
|
---|
42 | switch (key) {
|
---|
43 | case TremoloKey::F :
|
---|
44 | F = value;
|
---|
45 | break;
|
---|
46 | case TremoloKey::stress :
|
---|
47 | stress = value;
|
---|
48 | break;
|
---|
49 | case TremoloKey::imprData :
|
---|
50 | imprData = value;
|
---|
51 | break;
|
---|
52 | case TremoloKey::GroupMeasureTypeNo :
|
---|
53 | GroupMeasureTypeNo = value;
|
---|
54 | break;
|
---|
55 | case TremoloKey::extType :
|
---|
56 | extType = value;
|
---|
57 | break;
|
---|
58 | case TremoloKey::name :
|
---|
59 | name = value;
|
---|
60 | break;
|
---|
61 | case TremoloKey::resName :
|
---|
62 | resName = value;
|
---|
63 | break;
|
---|
64 | case TremoloKey::chainID :
|
---|
65 | chainID = value;
|
---|
66 | break;
|
---|
67 | case TremoloKey::resSeq :
|
---|
68 | resSeq = value;
|
---|
69 | break;
|
---|
70 | case TremoloKey::occupancy :
|
---|
71 | occupancy = value;
|
---|
72 | break;
|
---|
73 | case TremoloKey::tempFactor :
|
---|
74 | tempFactor = value;
|
---|
75 | break;
|
---|
76 | case TremoloKey::segID :
|
---|
77 | segID = value;
|
---|
78 | break;
|
---|
79 | case TremoloKey::Charge :
|
---|
80 | Charge = value;
|
---|
81 | break;
|
---|
82 | case TremoloKey::charge :
|
---|
83 | charge = value;
|
---|
84 | break;
|
---|
85 | case TremoloKey::GrpTypeNo :
|
---|
86 | GrpTypeNo = value;
|
---|
87 | break;
|
---|
88 | case TremoloKey::torsion :
|
---|
89 | torsion = value;
|
---|
90 | break;
|
---|
91 | default :
|
---|
92 | std::cout << "Unknown key: " << key << ", value: " << value << std::endl;
|
---|
93 | break;
|
---|
94 | }
|
---|
95 | }
|
---|
96 |
|
---|
97 | std::string TremoloAtomInfoContainer::get(TremoloKey::atomDataKey key) {
|
---|
98 | switch (key) {
|
---|
99 | case TremoloKey::F :
|
---|
100 | return F;
|
---|
101 | case TremoloKey::stress :
|
---|
102 | return stress;
|
---|
103 | case TremoloKey::imprData :
|
---|
104 | return imprData;
|
---|
105 | case TremoloKey::GroupMeasureTypeNo :
|
---|
106 | return GroupMeasureTypeNo;
|
---|
107 | case TremoloKey::extType :
|
---|
108 | return extType;
|
---|
109 | case TremoloKey::name :
|
---|
110 | return name;
|
---|
111 | case TremoloKey::resName :
|
---|
112 | return resName;
|
---|
113 | case TremoloKey::chainID :
|
---|
114 | return chainID;
|
---|
115 | case TremoloKey::resSeq :
|
---|
116 | return resSeq;
|
---|
117 | case TremoloKey::occupancy :
|
---|
118 | return occupancy;
|
---|
119 | case TremoloKey::tempFactor :
|
---|
120 | return tempFactor;
|
---|
121 | case TremoloKey::segID :
|
---|
122 | return segID;
|
---|
123 | case TremoloKey::Charge :
|
---|
124 | return Charge;
|
---|
125 | case TremoloKey::charge :
|
---|
126 | return charge;
|
---|
127 | case TremoloKey::GrpTypeNo :
|
---|
128 | return GrpTypeNo;
|
---|
129 | case TremoloKey::torsion :
|
---|
130 | return torsion;
|
---|
131 | default :
|
---|
132 | std::cout << "Unknown key: " << key << std::endl;
|
---|
133 | return "";
|
---|
134 | }
|
---|
135 | }
|
---|
136 |
|
---|