30 template <
typename step_t>
32 :
public WriterT<std::vector<std::vector<step_t>>> {
47 :
WriterT<std::vector<std::vector<step_t>>>(cfg.collection,
48 "ObjSpacePointWriter", level),
51 throw std::invalid_argument(
"Missing input collection");
69 const std::vector<std::vector<step_t>>& stepCollection) final
override {
73 std::ofstream os(path, std::ofstream::out | std::ofstream::trunc);
75 throw std::ios_base::failure(
"Could not open '" + path +
"' to write");
79 unsigned int vCounter = 0;
81 for (
auto&
steps : stepCollection) {
83 if (
steps.size() > 2) {
93 size_t vBreak = vCounter + steps.size() - 1;
94 for (; vCounter < vBreak; ++vCounter)
95 os <<
"l " << vCounter <<
" " << vCounter + 1 <<
'\n';