MCPcopy Create free account
hub / github.com/Kitware/VTK / getMetadata

Method getMetadata

ThirdParty/libproj/vtklibproj/src/iso19111/factory.cpp:2785–2793  ·  view source on GitHub ↗

\brief Return a metadata item. * * Value remains valid while this is alive and to the next call to getMetadata */

Source from the content-addressed store, hash-verified

2783 * Value remains valid while this is alive and to the next call to getMetadata
2784 */
2785const char *DatabaseContext::getMetadata(const char *key) const {
2786 auto res =
2787 d->run("SELECT value FROM metadata WHERE key = ?", {std::string(key)});
2788 if (res.empty()) {
2789 return nullptr;
2790 }
2791 d->lastMetadataValue_ = res.front()[0];
2792 return d->lastMetadataValue_.c_str();
2793}
2794
2795// ---------------------------------------------------------------------------
2796

Callers 2

GetLasOffsetsMethod · 0.80

Calls 5

stringClass · 0.50
runMethod · 0.45
emptyMethod · 0.45
frontMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected