| 90 | } |
| 91 | |
| 92 | std::vector<Eigen::Vector3d> parseReceiverFile(const std::string& receiverFileName) { |
| 93 | std::vector<Eigen::Vector3d> points{}; |
| 94 | |
| 95 | std::ifstream file{receiverFileName}; |
| 96 | std::string line{}; |
| 97 | while (std::getline(file, line)) { |
| 98 | const bool onlyWhiteSpace = std::all_of(line.begin(), line.end(), [](auto& c) { |
| 99 | return std::isspace(c); // This lambda is needed (opt. argument) |
| 100 | }); |
| 101 | if (!onlyWhiteSpace) { |
| 102 | points.emplace_back(parseReceiverLine(line)); |
| 103 | } |
| 104 | } |
| 105 | return points; |
| 106 | } |
| 107 | |
| 108 | std::string ReceiverWriter::fileName(unsigned pointId) const { |
| 109 | std::stringstream fns; |
no test coverage detected