MCPcopy Create free account
hub / github.com/Cantera/cantera / readAttributes

Method readAttributes

src/base/Storage.cpp:285–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285AnyMap 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
300void writeH5Attributes(h5::Group sub, const AnyMap& meta)
301{

Callers 3

TESTFunction · 0.80
readHeaderMethod · 0.80
readEntryMethod · 0.80

Calls 4

readH5AttributesFunction · 0.85
NotImplementedErrorClass · 0.85
CanteraErrorClass · 0.85
getMessageMethod · 0.45

Tested by 1

TESTFunction · 0.64