5#ifndef BALL_FORMAT_HMOFILE_H
6#define BALL_FORMAT_HMOFILE_H
10#ifndef BALL_KERNEL_ATOMCONTAINER_H
14#ifndef BALL_MATHS_SURFACE_H
47 return ((position == c.position) && (value == c.value));
110 return (charges_.size() > 0);
128 return (comments_.size() > 0);
HMOFile()
Default constructor.
std::vector< HMOCharge > const & getCharges() const
Accessor for the vector of charges, const version.
std::vector< HMOCharge > charges_
std::vector< String > const & getComments() const
Accessor for the vector of comments, const version.
virtual bool write(Surface const &surface, AtomContainer const &ac)
HMOFile(const String &filename, File::OpenMode open_mode=std::ios::in)
virtual bool read(Surface &surface)
std::vector< String > & getComments()
Accessor for the vector of comments.
virtual ~HMOFile()
Destructor.
std::vector< String > comments_
virtual void clear()
Clear method.
bool readUntil_(String const &pattern)
std::vector< HMOCharge > & getCharges()
Accessor for the vector of charges.
virtual bool write(Surface const &surface)
void readNodeData_(Surface &surface)
bool hasComments() const
Test for the presence of comments.
void writeCharges_(AtomContainer const &ac)
void writeElements_(Surface const &surface)
virtual bool open(const String &name, File::OpenMode open_mode=std::ios::in)
void writeNodes_(Surface const &surface)
bool hasCharges() const
Test for the presence of charges.
void readElementData_(Surface &surface)
std::ios::openmode OpenMode