ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProtoMol::XYZReader Class Reference

#include <XYZReader.h>

Inheritance diagram for ProtoMol::XYZReader:

ProtoMol::Reader ProtoMol::File List of all members.

Public Member Functions

 XYZReader ()
 XYZReader (const std::string &filename)
virtual ~XYZReader ()
virtual bool open ()
virtual bool open (const std::string &filename)
virtual bool open (const char *filename)
virtual bool tryFormat ()
virtual bool read ()
bool read (XYZ &xyz)
bool read (Vector3DBlock &coords, std::vector< std::string > &names)
XYZ getXYZ () const
Vector3DBlockorphanCoords ()
std::vector< std::string > * orphanNames ()

Private Attributes

Vector3DBlockmyCoords
std::vector< std::string > * myNames

Friends

XYZReaderoperator>> (XYZReader &xyzReader, XYZ &xyz)
XYZReaderoperator>> (XYZReader &xyzReader, Vector3DBlock &coords)

Detailed Description

Reads a XYZ format file (ASCII).


Constructor & Destructor Documentation

ProtoMol::XYZReader::XYZReader  ) 
 

ProtoMol::XYZReader::XYZReader const std::string &  filename  )  [explicit]
 

ProtoMol::XYZReader::~XYZReader  )  [virtual]
 


Member Function Documentation

XYZ ProtoMol::XYZReader::getXYZ  )  const
 

virtual bool ProtoMol::XYZReader::open const char *  filename  )  [inline, virtual]
 

Implements ProtoMol::File.

virtual bool ProtoMol::XYZReader::open const std::string &  filename  )  [inline, virtual]
 

Implements ProtoMol::File.

virtual bool ProtoMol::XYZReader::open  )  [inline, virtual]
 

Implements ProtoMol::File.

Vector3DBlock * ProtoMol::XYZReader::orphanCoords  ) 
 

vector< string > * ProtoMol::XYZReader::orphanNames  ) 
 

bool ProtoMol::XYZReader::read Vector3DBlock coords,
std::vector< std::string > &  names
 

bool ProtoMol::XYZReader::read XYZ xyz  ) 
 

bool ProtoMol::XYZReader::read  )  [virtual]
 

Simple test, true if it the format might be correct/readable.

Implements ProtoMol::Reader.

bool ProtoMol::XYZReader::tryFormat  )  [virtual]
 

Implements ProtoMol::Reader.


Friends And Related Function Documentation

XYZReader& operator>> XYZReader xyzReader,
Vector3DBlock coords
[friend]
 

XYZReader& operator>> XYZReader xyzReader,
XYZ xyz
[friend]
 


Member Data Documentation

Vector3DBlock* ProtoMol::XYZReader::myCoords [private]
 

std::vector<std::string>* ProtoMol::XYZReader::myNames [private]
 


The documentation for this class was generated from the following files: Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.