| 58 | |
| 59 | |
| 60 | void MatlabWriter::prepared(PointTableRef table) |
| 61 | { |
| 62 | if (m_outputDims.empty()) |
| 63 | { |
| 64 | m_dims = table.layout()->dims(); |
| 65 | } |
| 66 | else |
| 67 | { |
| 68 | for (std::string& s : m_outputDims) |
| 69 | { |
| 70 | // DimType dimType = table.layout()->findDimType(s); |
| 71 | Dimension::Id id = table.layout()->findDim(s); |
| 72 | if (id == Dimension::Id::Unknown) |
| 73 | throwError("Invalid dimension '" + s + "' specified for " |
| 74 | "'output_dims' option."); |
| 75 | m_dims.push_back(id); |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | |
| 81 | void MatlabWriter::ready(PointTableRef table) |