votca 2024.2-dev
Loading...
Searching...
No Matches
dlpolytrajectorywriter.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_DLPOLYTRAJECTORYWRITER_PRIVATE_H
19#define VOTCA_CSG_DLPOLYTRAJECTORYWRITER_PRIVATE_H
20
21// VOTCA includes
23
24// Local VOTCA includes
25#include "votca/csg/topology.h"
27
28namespace votca {
29namespace csg {
30
40 public:
51
52 // open transformed trajectory file
53 void Open(std::string file, bool bAppend = false) override;
54 // close transformed trajectory file
55 void Close() override;
56 // write a frame into transformed trajectory file
57 void Write(Topology *conf) override;
58
62 void setFname(std::string name) {
63 fname_ = name;
64 return;
65 }
66 std::string getFname() { return fname_; }
67
70 void setIsConfig(bool isConf) {
71 isConfig_ = isConf;
72 return;
73 }
74 bool getIsConfig() { return isConfig_; }
75
76 private:
77 std::ofstream fl_;
78 std::string fname_;
80};
81
82} // namespace csg
83} // namespace votca
84
85#endif // VOTCA_CSG_DLPOLYTRAJECTORYWRITER_PRIVATE_H
class for writing dlpoly trajectory and configuration files
void Open(std::string file, bool bAppend=false) override
const tools::MolarEnergyUnit energy_unit
void Write(Topology *conf) override
const tools::MolarForceUnit force_unit
topology of the whole system
Definition topology.h:81
@ kilojoules_per_mole_angstrom
base class for all analysis tools
Definition basebead.h:33