Simpatico  v1.10
McMdConfigIo.h
1 #ifndef MCMD_MC_MD_CONFIG_IO_H
2 #define MCMD_MC_MD_CONFIG_IO_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010 - 2017, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 #include <mcMd/configIos/ConfigIo.h>
12 #include <simp/boundary/Boundary.h>
13 #include <util/global.h>
14 
15 #include <iostream>
16 
17 namespace McMd
18 {
19 
20  class System;
21  class Atom;
22 
23  using namespace Util;
24  using namespace Simp;
25 
31  class McMdConfigIo : public ConfigIo
32  {
33 
34  public:
35 
37  McMdConfigIo(System& system);
38 
40  virtual ~McMdConfigIo();
41 
47  virtual void read(std::istream &in);
48 
54  virtual void write(std::ostream& out);
55 
56  protected:
57 
59  virtual void readAtom(std::istream& out, Atom& atom) = 0;
60 
62  virtual void writeAtom(std::ostream& out, const Atom& atom) = 0;
63 
64  };
65 
66 }
67 #endif
void write(std::ostream &out, Type data)
Function template for output in a standard format.
Definition: write.h:80
A set of interacting Molecules enclosed by a Boundary.
Definition: System.h:115
File containing preprocessor macros for error handling.
Classes used by all simpatico molecular simulations.
Base class for default Mc and Md configIos.
Definition: McMdConfigIo.h:31
A point particle within a Molecule.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
System configuration file reader and writer.