14 #ifndef ESYS_LSMWALLFORCEREADER_H
15 #define ESYS_LSMWALLFORCEREADER_H
44 StringUtil::StringVector::const_iterator begin,
45 StringUtil::StringVector::const_iterator end
50 m_id = StringUtil::to<int>(*begin);
51 for (
int i = 0; i < 3; i++) {
52 m_force[i] = StringUtil::to<double>(*(begin + i + 1));
79 const int elemsPerWallForce = 4;
82 if ((elemVector.size() % elemsPerWallForce) == 0)
85 StringUtil::StringVector::const_iterator it = elemVector.begin();
86 it != elemVector.end();
87 it += elemsPerWallForce
90 const WallForce wallForce(it, it + elemsPerWallForce);
100 std::stringstream msg;
104 <<
"' does not contain a number of elements divisible by "
105 << elemsPerWallForce;
106 throw std::runtime_error(msg.str());