#include <BALL/FORMAT/XYZFile.h>
Public Member Functions | |
Constructors and Destructors | |
XYZFile () | |
XYZFile (const String &filename, File::OpenMode open_mode=std::ios::in) throw (Exception::FileNotFound) | |
virtual | ~XYZFile () |
Destructor. | |
Reading and Writing of Kernel Datastructures | |
| |
String | comment_ |
virtual bool | write (const AtomContainer &ac) throw (File::CannotWrite) |
virtual bool | write (const System &system) throw (File::CannotWrite) |
virtual bool | write (const Molecule &mol) throw (File::CannotWrite) |
virtual bool | read (System &system) throw (Exception::ParseError) |
virtual Molecule * | read () throw (Exception::ParseError) |
BALL_DEPRECATED const String & | getComent () const |
const String & | getComment () const |
const XYZFile & | operator= (const XYZFile &file) |
XYZ file class. This class enables BALL to read and write XMol XYZ files. The XYZ format is a very simple molecular file format. In general it contains only the atom type (i.e., the element) and the cartesian coordinates of the structure. Newer versions of this file format also contain bonds (without bond order) and atom names.
Definition at line 34 of file XYZFile.h.
BALL::XYZFile::XYZFile | ( | ) |
Default constructor
BALL::XYZFile::XYZFile | ( | const String & | filename, | |
File::OpenMode | open_mode = std::ios::in | |||
) | throw (Exception::FileNotFound) |
Detailed constructor. Create a XYZ file and open it with mode open_mode
(reading is default)
filename | the filename | |
open_mode | the openmode - default is File::IN |
virtual BALL::XYZFile::~XYZFile | ( | ) | [virtual] |
Destructor.
BALL_DEPRECATED const String& BALL::XYZFile::getComent | ( | ) | const [inline] |
virtual Molecule* BALL::XYZFile::read | ( | ) | throw (Exception::ParseError) [virtual] |
Read a molecule from the XYZ file
Reimplemented from BALL::GenericMolFile.
virtual bool BALL::XYZFile::read | ( | System & | system | ) | throw (Exception::ParseError) [virtual] |
Read a system from the XYZ file
Reimplemented from BALL::GenericMolFile.
virtual bool BALL::XYZFile::write | ( | const Molecule & | mol | ) | throw (File::CannotWrite) [virtual] |
Write a molecule to the XYZ file
Reimplemented from BALL::GenericMolFile.
virtual bool BALL::XYZFile::write | ( | const System & | system | ) | throw (File::CannotWrite) [virtual] |
Write a system to the XYZ file
Reimplemented from BALL::GenericMolFile.
virtual bool BALL::XYZFile::write | ( | const AtomContainer & | ac | ) | throw (File::CannotWrite) [virtual] |
Write an AtomContainer to the XYZ file
String BALL::XYZFile::comment_ [private] |