45#include "io/OptionSectionParser.hpp"
48#include "types/AtomType.hpp"
50#include "utils/simError.h"
54 OptionSectionParser::OptionSectionParser(ForceFieldOptions& options) :
56 setSectionName(
"Options");
59 void OptionSectionParser::parseLine(ForceField&,
const std::string& line,
61 StringTokenizer tokenizer(line);
63 if (tokenizer.countTokens() >= 2) {
64 std::string optionName = tokenizer.nextToken();
65 std::string optionValue = tokenizer.nextToken();
67 options_.setData(optionName, optionValue);
70 snprintf(painCave.errMsg, MAX_SIM_ERROR_MSG_LENGTH,
71 "OptionSectionParser Error: "
72 "Not enough tokens at line %d\n",
79 void OptionSectionParser::validateSection(ForceField&) {
80 options_.validateOptions();
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.