BALL  1.4.1
XYZFile.h
Go to the documentation of this file.
00001 // -*- Mode: C++; tab-width: 2; -*-
00002 // vi: set ts=2:
00003 //
00004 
00005 #ifndef BALL_FORMAT_XYZFILE_H
00006 #define BALL_FORMAT_XYZFILE_H
00007 
00008 #ifndef BALL_FORMAT_GENERICMOLFILE_H
00009 # include <BALL/FORMAT/genericMolFile.h>
00010 #endif
00011 
00012 namespace BALL 
00013 {
00014   class System;
00015   class Molecule;
00016   class AtomContainer;
00017 
00034   class BALL_EXPORT XYZFile
00035     : public GenericMolFile
00036   {
00037     public:
00038 
00042 
00045     XYZFile();
00046 
00053     XYZFile(const String& filename, File::OpenMode open_mode = std::ios::in);
00054 
00057     virtual ~XYZFile();
00058     
00060 
00063     
00067     virtual bool write(const AtomContainer& ac);
00068 
00072     virtual bool write(const System& system);
00073     
00077     virtual bool write(const Molecule& mol);
00078 
00082     virtual bool read(System& system);
00083 
00087     virtual Molecule* read();
00088 
00090     BALL_DEPRECATED const String& getComent() const { return comment_; }
00091     
00093     const String& getComment() const { return comment_; }
00094 
00095     private:
00096       const XYZFile& operator = (const XYZFile& file);
00097 
00098     String comment_;
00099     
00101   };
00102 } // namespace BALL
00103 
00104 #endif // BALL_FORMAT_XYZFILE_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines