| 500 | |
| 501 | |
| 502 | void Database::WriteGlobal(const std::string& key, const Json::Value& val) |
| 503 | { |
| 504 | Json::StreamWriterBuilder builder; |
| 505 | builder["indentation"] = ""; |
| 506 | string json = Json::writeString(builder, val); |
| 507 | if (!BNWriteDatabaseGlobal(m_object, key.c_str(), json.c_str())) |
| 508 | { |
| 509 | throw DatabaseException("BNWriteDatabaseGlobal"); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | |
| 514 | DataBuffer Database::ReadGlobalData(const std::string& key) const |
nothing calls this directly
no test coverage detected