| 283 | } |
| 284 | |
| 285 | AnyMap Storage::readAttributes(const string& id, bool recursive) const |
| 286 | { |
| 287 | try { |
| 288 | checkGroupRead(id); |
| 289 | h5::Group sub = m_file->getGroup(id); |
| 290 | return readH5Attributes(sub, recursive); |
| 291 | } catch (const Cantera::NotImplementedError& err) { |
| 292 | throw NotImplementedError("Storage::readAttribute", |
| 293 | "{} in group '{}'.", err.getMessage(), id); |
| 294 | } catch (const CanteraError& err) { |
| 295 | throw CanteraError("Storage::readAttribute", |
| 296 | "Caught exception for group '{}':\n", id, err.getMessage()); |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | void writeH5Attributes(h5::Group sub, const AnyMap& meta) |
| 301 | { |