Dumps the profile in ASCII format. */
| 271 | |
| 272 | /** Dumps the profile in ASCII format. */ |
| 273 | std::string dump() const { |
| 274 | tiledb_error_t* capi_error = nullptr; |
| 275 | tiledb_string_t* str; |
| 276 | int rc = tiledb_profile_dump_str(profile_.get(), &str, &capi_error); |
| 277 | if (rc != TILEDB_OK) { |
| 278 | const char* msg_cstr; |
| 279 | tiledb_error_message(capi_error, &msg_cstr); |
| 280 | std::string msg = msg_cstr; |
| 281 | tiledb_error_free(&capi_error); |
| 282 | throw ProfileException(msg); |
| 283 | } |
| 284 | |
| 285 | return impl::convert_to_string(&str).value(); |
| 286 | } |
| 287 | |
| 288 | private: |
| 289 | /* ********************************* */ |
nothing calls this directly
no test coverage detected