21#ifndef VOTCA_XTP_SEGID_H
22#define VOTCA_XTP_SEGID_H
48 std::vector<std::string> results = tok.
ToVector();
49 if (results.size() != 2) {
50 throw std::runtime_error(
"Malformed string '" + input +
"' for segment");
52 id_ = std::stoi(results[0]);
68 if (extension ==
"pdb" || extension ==
"xyz" || extension ==
"mps") {
75 }
catch (std::runtime_error&) {
76 throw std::runtime_error(
"'" + result +
77 "' is neither a QMState nor a filename. Did "
78 "you maybe forget the fileending");
Identifier for QMstates. Strings like S1 are converted into enum +zero indexed int.
QMState getQMState() const
std::string FileName() const
void TestStringForQMState(const std::string &result)
SegId(Index id, std::string geometry)
base class for all analysis tools