Victor
 All Data Structures Functions Variables Friends Pages
XyzLoader.h
1 /* This file is part of Victor.
2 
3  Victor is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Victor is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with Victor. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 
18 #ifndef _XYZ_LOADER_H_
19 #define _XYZ_LOADER_H_
20 
21 // Includes:
22 #include <Group.h>
23 #include <Ligand.h>
24 #include <SideChain.h>
25 #include <Loader.h>
26 #include <AminoAcid.h>
27 #include <Spacer.h>
28 
29 // Global constants, typedefs, etc. (to avoid):
30 
31 namespace Victor { namespace Biopool {
32 
41  class XyzLoader : public Loader {
42  public:
43 
44  // CONSTRUCTORS/DESTRUCTOR:
45 
46  XyzLoader(istream& _input = cin) : input(_input), connect(true) {
47  }
48  // this class uses the implicit copy operator.
49 
50  virtual ~XyzLoader() {
51  PRINT_NAME;
52  }
53 
54  // MODIFIERS:
55 
56  void connectSegments(bool c) {
57  connect = c;
58  }
59  // determines if segments (aminoacids, sidechains) have to be connected
60  virtual void loadGroup(Group& gr);
61  virtual void loadSideChain(SideChain& sc, AminoAcid* aaRef = NULL);
62  virtual void loadAminoAcid(AminoAcid& aa);
63  virtual void loadSpacer(Spacer& sp);
64  virtual void loadLigand(Ligand& l);
65 
66  protected:
67 
68  private:
69  istream& input; // input stream
70  bool connect; // are segments to be connected to each other?
71  };
72 }} //namespace
73 #endif //_XYZ_LOADER_H_
virtual void loadLigand(Ligand &l)
Definition: XyzLoader.cc:139
This class implements a side chain.
Definition: SideChain.h:32
virtual void loadGroup(Group &gr)
Definition: XyzLoader.cc:37
This class implements a simple chemical group.
Definition: Group.h:35
Base class for loading components (Atoms, Groups, etc.).
Definition: Loader.h:39
virtual void loadSideChain(SideChain &sc, AminoAcid *aaRef=NULL)
Definition: XyzLoader.cc:67
virtual void loadAminoAcid(AminoAcid &aa)
Definition: XyzLoader.cc:84
Implements methods to verify the ligand properties.
Definition: Ligand.h:38
It mplements a simple amino acid.
Definition: AminoAcid.h:43
Implements a "Spacer" for a protein chain. Includes methods to obtain values from the atoms and its p...
Definition: Spacer.h:42
virtual void loadSpacer(Spacer &sp)
Definition: XyzLoader.cc:113
Loads components (Atoms, Groups, etc.) in XYZ (carthesian) format.
Definition: XyzLoader.h:41