Victor
 All Data Structures Functions Variables Friends Pages
IntSaver.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 _INT_SAVER_H_
19 #define _INT_SAVER_H_
20 
21 // Includes:
22 #include <Spacer.h>
23 #include <Group.h>
24 #include <SideChain.h>
25 #include <AminoAcid.h>
26 #include <Saver.h>
27 #include <Debug.h>
28 #include <string>
29 #include <iostream>
30 
31 // Global constants, typedefs, etc. (to avoid):
32 
33 namespace Victor { namespace Biopool {
34 
45  class IntSaver : public Saver {
46  public:
47 
48  // CONSTRUCTORS/DESTRUCTOR:
49 
50  IntSaver(ostream& _output = cout) : output(_output) {
51  };
52  // this class uses the implicit copy operator.
53 
54  virtual ~IntSaver() {
55  PRINT_NAME;
56  };
57 
58  // MODIFIERS:
59  virtual void saveGroup(Group& group);
60  virtual void saveSideChain(SideChain& node);
61  virtual void saveAminoAcid(AminoAcid& node);
62  virtual void saveSpacer(Spacer& sp);
63  virtual void saveLigand(Ligand& l);
64 
65  protected:
66  void pSaveAtomVector(vector<Atom>& va, unsigned int offset = 0);
67 
68  private:
69  ostream& output; // output stream
70  // unsigned int count;
71  };
72 
73 }} //namespace
74 #endif //_INT_SAVER_H_
virtual void saveGroup(Group &group)
Definition: IntSaver.cc:39
virtual void saveAminoAcid(AminoAcid &node)
Definition: IntSaver.cc:68
Base class for saving components (Atoms, Groups, etc.).
Definition: Saver.h:39
This class implements a side chain.
Definition: SideChain.h:32
virtual void saveLigand(Ligand &l)
Definition: IntSaver.cc:49
This class implements a simple chemical group.
Definition: Group.h:35
Loads components (Atoms, Groups, etc.) in internal format.
Definition: IntSaver.h:45
Implements methods to verify the ligand properties.
Definition: Ligand.h:38
It mplements a simple amino acid.
Definition: AminoAcid.h:43
virtual void saveSpacer(Spacer &sp)
Definition: IntSaver.cc:80
virtual void saveSideChain(SideChain &node)
Definition: IntSaver.cc:58
Implements a "Spacer" for a protein chain. Includes methods to obtain values from the atoms and its p...
Definition: Spacer.h:42
void pSaveAtomVector(vector< Atom > &va, unsigned int offset=0)
Definition: IntSaver.cc:105