24#if !(defined LOOS_CHARMM_HPP)
25#define LOOS_CHARMM_HPP
34#include <loos_defs.hpp>
35#include <AtomicGroup.hpp>
50 CHARMM() : _max_index(0) { }
53 explicit CHARMM(
const std::string fname) : _max_index(0), _filename(fname) {
54 std::ifstream ifs(fname.c_str());
61 explicit CHARMM(std::istream &ifs) : _max_index(0), _filename(
"stream") {
65 static pAtomicGroup create(
const std::string& fname) {
66 return(pAtomicGroup(
new CHARMM(fname)));
75 void read(std::istream& is);
83 std::string _filename;
Class for handling groups of Atoms (pAtoms, actually)
Definition AtomicGroup.hpp:108
Class for reading a CHARMM coordinate file.
Definition charmm.hpp:48
CHARMM copy(void) const
Creates a deep copy (see AtomicGroup::copy() for more info)
Definition charmm.cpp:36
virtual CHARMM * clone(void) const
Clones an object for polymorphism (see AtomicGroup::clone() for more info)
Definition charmm.cpp:32
void read(std::istream &is)
Definition charmm.cpp:51
Error while opening a file.
Definition exceptions.hpp:175
Namespace for most things not already encapsulated within a class.
Definition version.cpp:3