BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
FORMAT
genericMolFile.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_GENERICMOLFILE_H
6
#define BALL_FORMAT_GENERICMOLFILE_H
7
8
#ifndef BALL_FORMAT_LINEBASEDFILE_H
9
# include <
BALL/FORMAT/lineBasedFile.h
>
10
#endif
11
12
namespace
BALL
13
{
14
class
Atom
;
15
class
System;
16
class
Molecule;
17
56
class
BALL_EXPORT
GenericMolFile
57
:
public
LineBasedFile
58
{
59
public
:
60
64
67
GenericMolFile
();
68
72
GenericMolFile
(
const
String
& filename,
File::OpenMode
open_mode = std::ios::in);
73
76
virtual
~
GenericMolFile
();
77
78
virtual
void
close();
79
81
84
89
const
GenericMolFile
& operator = (
const
GenericMolFile
& rhs);
90
93
void
defineInputAsTemporary(
bool
b =
true
);
94
97
void
enableOutputCompression(
String
zipped_filename);
98
99
bool
isCompressedFile();
100
102
105
115
virtual
bool
write(
const
System
& system);
116
123
virtual
bool
write(
const
Molecule
& molecule);
124
134
virtual
bool
read(
System
& system);
135
146
virtual
Molecule
* read();
147
149
152
157
virtual
GenericMolFile
&
operator >>
(
System
& system);
158
163
virtual
GenericMolFile
&
operator <<
(
const
System
& system);
164
169
virtual
GenericMolFile
&
operator >>
(
Molecule
& molecule);
170
175
virtual
GenericMolFile
&
operator <<
(
const
Molecule
& molecule);
177
178
protected
:
186
virtual
void
initRead_();
187
192
virtual
void
initWrite_();
193
194
bool
input_is_temporary_
;
195
bool
compress_output_
;
196
bool
gmf_is_closed_
;
197
String
zipped_filename_
;
198
199
};
200
}
// namespace BALL
201
202
#endif // BALL_FORMAT_GENERICMOLFILE_H
BALL::String
Definition:
string.h:61
BALL::LineBasedFile
Definition:
lineBasedFile.h:20
BALL::GenericMolFile::gmf_is_closed_
bool gmf_is_closed_
Definition:
genericMolFile.h:196
BALL::operator>>
std::istream & operator>>(std::istream &is, TRegularData1D< ValueType > &grid)
Input operator.
Definition:
regularData1D.h:801
BALL::GenericMolFile::input_is_temporary_
bool input_is_temporary_
Definition:
genericMolFile.h:194
BALL::operator<<
BALL_EXPORT std::ostream & operator<<(std::ostream &os, const Exception::GeneralException &e)
BALL::System
Definition:
KERNEL/system.h:38
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition:
file.h:168
lineBasedFile.h
BALL::Molecule
Definition:
molecule.h:29
BALL::GenericMolFile
Definition:
genericMolFile.h:56
BALL::GenericMolFile::zipped_filename_
String zipped_filename_
Definition:
genericMolFile.h:197
BALL::GenericMolFile::compress_output_
bool compress_output_
Definition:
genericMolFile.h:195
BALL::PDB::Atom
char Atom[5]
Definition:
PDBdefs.h:257
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
Generated by
1.8.7