24#if !(defined LOOS_PSF_HPP)
31#include <loos_defs.hpp>
32#include <AtomicGroup.hpp>
65 explicit PSF(
const std::string& fname) : _max_index(0), _filename(fname) {
66 std::ifstream ifs(fname.c_str());
72 explicit PSF(std::fstream &ifs) : _max_index(0), _filename(
"stream") {
76 static pAtomicGroup create(
const std::string& fname) {
77 return(pAtomicGroup(
new PSF(fname)));
86 void read(std::istream& is);
92 void parseAtomRecord(
const std::string s);
95 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 PSF format.
Definition psf.hpp:60
virtual PSF * clone(void) const
Clones an object for polymorphism (see AtomicGroup::clone() for more info)
Definition psf.cpp:29
PSF copy(void) const
Creates a deep copy (see AtomicGroup::copy() for more info)
Definition psf.cpp:33
Namespace for most things not already encapsulated within a class.
Definition version.cpp:3