Run the example. */
| 322 | |
| 323 | /** Run the example. */ |
| 324 | int main() { |
| 325 | // Define variables. |
| 326 | const char* array_uri = "quickstart_dimension_labels_array_cpp"; |
| 327 | |
| 328 | // Create TileDB context. |
| 329 | Context ctx; |
| 330 | |
| 331 | // Only create the axes label array if it does not exist. |
| 332 | Object type = Object::object(ctx, array_uri); |
| 333 | if (type.type() != Object::Type::Array) { |
| 334 | // Create the array. |
| 335 | create_array(ctx, array_uri); |
| 336 | |
| 337 | // Write data to the array and to the dimension labels. |
| 338 | write_array_and_labels(ctx, array_uri); |
| 339 | } |
| 340 | |
| 341 | // Read the full data. |
| 342 | read_array_and_labels(ctx, array_uri); |
| 343 | |
| 344 | // Read data just from a single label. |
| 345 | read_timestamp_data(ctx, array_uri); |
| 346 | |
| 347 | // Read data from the array using the dimension labels. |
| 348 | read_array_by_label(ctx, array_uri); |
| 349 | } |
nothing calls this directly
no test coverage detected