| 49 | using namespace tiledb; |
| 50 | |
| 51 | void print_path(const std::string& path, tiledb::Object::Type type) { |
| 52 | // Simply print the path and type |
| 53 | std::cout << path << " "; |
| 54 | switch (type) { |
| 55 | case tiledb::Object::Type::Array: |
| 56 | std::cout << "ARRAY"; |
| 57 | break; |
| 58 | case tiledb::Object::Type::Group: |
| 59 | std::cout << "GROUP"; |
| 60 | break; |
| 61 | default: |
| 62 | std::cout << "INVALID"; |
| 63 | } |
| 64 | std::cout << "\n"; |
| 65 | } |
| 66 | |
| 67 | int list_obj(const std::string& path) { |
| 68 | // Create TileDB context |