BALL
1.5.0
include
BALL
FORMAT
trajectoryFile.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_FORMAT_TRAJECTORYFILE_H
6
#define BALL_FORMAT_TRAJECTORYFILE_H
7
8
#ifndef BALL_SYSTEM_FILE_H
9
# include <
BALL/SYSTEM/file.h
>
10
#endif
11
12
#ifndef BALL_MOLMEC_COMMON_SNAPSHOT_H
13
# include <
BALL/MOLMEC/COMMON/snapShot.h
>
14
#endif
15
16
namespace
BALL
17
{
18
class
SnapShot;
19
class
SnapShotManager;
20
28
class
BALL_EXPORT
TrajectoryFile
29
:
public
File
30
{
31
32
public
:
33
35
36
38
TrajectoryFile
();
39
47
TrajectoryFile
(
const
String
& filename,
48
File::OpenMode
open_mode = std::ios::in);
49
51
virtual
~
TrajectoryFile
();
52
54
56
58
virtual
void
clear();
59
61
63
65
bool
operator ==
(
const
TrajectoryFile
& file)
const
;
66
68
70
74
virtual
Size
getNumberOfSnapShots();
75
79
Size
getNumberOfAtoms()
const
;
80
82
84
88
virtual
bool
readHeader();
89
93
virtual
bool
writeHeader();
94
100
virtual
bool
append(
const
SnapShot
& snapshot);
101
106
virtual
bool
read(
SnapShot
& snapshot);
107
113
virtual
bool
flushToDisk(
const
std::vector<SnapShot>& buffer);
115
116
private
:
117
const
TrajectoryFile
& operator = (
const
TrajectoryFile
& file);
118
119
protected
:
120
121
//_ @name Protected Members
123
124
//_ The number of snapshots stored in that file
125
Size
number_of_snapshots_
;
126
127
//_ The number of atoms covered by the snapshots
128
Size
number_of_atoms_
;
129
131
132
};
133
}
// namespace BALL
134
135
#endif // BALL_FORMAT_TRAJECTORYFILE_H
snapShot.h
BALL::TrajectoryFile::number_of_snapshots_
Size number_of_snapshots_
Definition:
trajectoryFile.h:125
BALL::String
Definition:
string.h:56
file.h
BALL
Definition:
constants.h:12
BALL::File
Definition:
file.h:134
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition:
file.h:165
BALL_SIZE_TYPE
BALL::TrajectoryFile
Definition:
trajectoryFile.h:28
BALL::operator==
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL::TrajectoryFile::number_of_atoms_
Size number_of_atoms_
Definition:
trajectoryFile.h:128
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::SnapShot
Definition:
snapShot.h:29
Generated by
1.8.17