24#if !(defined LOOS_TINKERXYZ_HPP)
25#define LOOS_TINKERXYZ_HPP
34#include <loos_defs.hpp>
35#include <AtomicGroup.hpp>
52 explicit TinkerXYZ(
const std::string& fname) : _max_index(0), _filename(fname) {
53 std::ifstream ifs(fname.c_str());
59 explicit TinkerXYZ(std::istream &ifs) : _max_index(0), _filename(
"stream") {
64 static pAtomicGroup create(
const std::string& fname) {
65 return(pAtomicGroup(
new TinkerXYZ(fname)));
74 void read(std::istream& is);
82 void parseAtomRecord(
const std::string&);
88 bool parseBoxRecord(
const std::string& s);
91 std::string _filename;
Class for handling groups of Atoms (pAtoms, actually)
Definition AtomicGroup.hpp:108
Error while opening a file.
Definition exceptions.hpp:175
Class for reading a subset of the TinkerXYZ format.
Definition tinkerxyz.hpp:47
TinkerXYZ copy(void) const
Creates a deep copy (see AtomicGroup::copy() for more info)
Definition tinkerxyz.cpp:32
virtual TinkerXYZ * clone(void) const
Clones an object for polymorphism (see AtomicGroup::clone() for more info)
Definition tinkerxyz.cpp:28
Namespace for most things not already encapsulated within a class.
Definition version.cpp:3