votca 2024-dev
Loading...
Searching...
No Matches
pdbreader.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18#ifndef VOTCA_CSG_PDBREADER_PRIVATE_H
19#define VOTCA_CSG_PDBREADER_PRIVATE_H
20
21// Standard includes
22#include <fstream>
23#include <iostream>
24#include <string>
25
26// VOTCA includes
29
30// Local VOTCA includes
33
34namespace votca {
35namespace csg {
36
45 public:
47
49 PDBReader() = default;
51 ~PDBReader() override = default;
53 bool ReadTopology(std::string file, Topology &top) override;
55 bool Open(const std::string &file) override;
57 bool FirstFrame(Topology &top) override;
59 bool NextFrame(Topology &top) override;
60 void Close() override;
61
62 private:
63 std::ifstream fl_;
65};
66} // namespace csg
67} // namespace votca
68
69#endif // VOTCA_CSG_PDBREADER_PRIVATE_H
const tools::DistanceUnit distance_unit
Definition pdbreader.h:46
bool Open(const std::string &file) override
open a trajectory file
Definition pdbreader.cc:53
void Close() override
Definition pdbreader.cc:63
PDBReader()=default
Constuctor.
std::ifstream fl_
Definition pdbreader.h:63
bool NextFrame(Topology &top) override
read in the next frame
Definition pdbreader.cc:70
bool FirstFrame(Topology &top) override
read in the first frame
Definition pdbreader.cc:65
bool ReadTopology(std::string file, Topology &top) override
open a topology file
Definition pdbreader.cc:38
~PDBReader() override=default
Destructor.
topology of the whole system
Definition topology.h:81
trajectoryreader interface
base class for all analysis tools
Definition basebead.h:33