Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
AtomicInformationReader.h
Go to the documentation of this file.
1 
8 #ifndef MMPARAMETRIZATION_ATOMICINFORMATIONREADER_H
9 #define MMPARAMETRIZATION_ATOMICINFORMATIONREADER_H
10 
11 #include <map>
12 #include <string>
13 
14 namespace Scine {
15 
16 namespace Core {
17 struct Log;
18 } // namespace Core
19 
20 namespace SwooseUtilities {
21 
23  public:
27  explicit AtomicInformationReader(Core::Log& log);
36  void read(const std::string& filename, std::map<int, int>& formalCharges, std::map<int, int>& unpairedElectrons,
37  int numberOfAtoms);
44  std::pair<int, int> read(const std::string& filename, int numberOfAtoms);
45 
46  private:
47  // The logger.
48  Core::Log& log_;
49 };
50 
51 } // namespace SwooseUtilities
52 } // namespace Scine
53 
54 #endif // MMPARAMETRIZATION_ATOMICINFORMATIONREADER_H
Definition: AtomicInformationReader.h:22
AtomicInformationReader(Core::Log &log)
Constructor.
Definition: AtomicInformationReader.cpp:15
void read(const std::string &filename, std::map< int, int > &formalCharges, std::map< int, int > &unpairedElectrons, int numberOfAtoms)
Reads the formal charges and number of unpaired electrons information from file and updates the Param...
Definition: AtomicInformationReader.cpp:18