| 222 | } |
| 223 | |
| 224 | void check_array(const msgpack::object& o, std::size_t expected_min, const char* what) { |
| 225 | if (o.type != msgpack::type::ARRAY) { |
| 226 | throw std::runtime_error(std::string("SVDSurfaceSerializer: expected array for ") + what); |
| 227 | } |
| 228 | if (o.via.array.size < expected_min) { |
| 229 | throw std::runtime_error(std::string("SVDSurfaceSerializer: array for ") + what + " too short"); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | std::unique_ptr<region::BoundaryCurve> unpack_curve(const msgpack::object& o, |
| 234 | const std::shared_ptr<region::SuperancillaryBoundaryCurve::SuperAncillary_t>& sa) { |
no test coverage detected