Simpatico  v1.10
DdMdConfigReader.h
1 #ifndef TOOLS_DDMD_CONFIG_READER_H
2 #define TOOLS_DDMD_CONFIG_READER_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 <tools/config/ConfigReader.h>
12 #include <tools/storage/GroupStorage.h>
13 #include <tools/storage/Configuration.h>
14 
15 #include <util/format/Int.h>
16 
17 namespace Tools
18 {
19 
20  class Configuration;
21 
22  using namespace Util;
23 
30  {
31 
32  public:
33 
37  DdMdConfigReader(bool hasMolecules = false);
38 
45  DdMdConfigReader(Configuration& configuration, bool hasMolecules = false);
46 
52  virtual void readConfig(std::ifstream& file);
53 
54  private:
55 
56  bool hasMolecules_;
57 
58  template <int N>
59  int readGroups(std::ifstream& file, const char* sectionLabel,
60  const char* nGroupLabel, GroupStorage<N>& groups);
61 
62  };
63 
64 }
65 #endif
A container for Group<N> objects.
Abstract reader/writer for configuration files.
Definition: ConfigReader.h:27
Native / default DdMd format for configuration files.
An instantaneous molecular dynamics configuration.
Definition: Configuration.h:40
Utility classes for scientific computation.
Definition: accumulators.mod:1
Single-processor classes for pre- and post-processing MD trajectories.