votca 2024.2-dev
Loading...
Searching...
No Matches
dlpolytrajectoryreader.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_DLPOLYTRAJECTORYREADER_PRIVATE_H
19#define VOTCA_CSG_DLPOLYTRAJECTORYREADER_PRIVATE_H
20
21// Standard includes
22#include <fstream>
23#include <iostream>
24#include <string>
25
26// VOTCA includes
28
29// Local VOTCA includes
31
32namespace votca {
33namespace csg {
34
44 public:
55
57 bool Open(const std::string &file) override;
59 bool FirstFrame(Topology &conf) override;
61 bool NextFrame(Topology &conf) override;
63 void Close() override;
64
67 void setFname(std::string name) {
68 fname_ = name;
69 return;
70 }
71 std::string getFname() { return fname_; }
72
75 void setIsConfig(bool isConf) {
76 isConfig_ = isConf;
77 return;
78 }
79 bool getIsConfig() { return isConfig_; }
80
81 private:
82 std::ifstream fl_;
83 std::string fname_;
86};
87
88} // namespace csg
89} // namespace votca
90
91#endif // VOTCA_CSG_DLPOLYTRAJECTORYREADER_PRIVATE_H
class for reading dlpoly trajectory and configuration files
const tools::MolarEnergyUnit energy_unit
void Close() override
close original trajectory file
bool FirstFrame(Topology &conf) override
read in the first frame
const tools::MolarForceUnit force_unit
bool Open(const std::string &file) override
open original trajectory file
bool NextFrame(Topology &conf) override
read in the next frame
topology of the whole system
Definition topology.h:81
trajectoryreader interface
@ kilojoules_per_mole_angstrom
base class for all analysis tools
Definition basebead.h:33