32 void set(
const std::vector<PathComponent> &components,
34 void del(
const std::vector<PathComponent> &components)
override;
35 std::vector<std::string>
list()
const override;
41 nlohmann::json get_metadata(std::string_view name)
const;
46 std::vector<uint8_t> get_cloud_binary(std::string_view name)
const;
51 void set_cloud_from_binary(std::string_view name,
52 const std::vector<uint8_t> &data);
57 void set_cloud_from_text(std::string_view name, std::string_view data);
Router for point cloud resources.
std::vector< std::string > list() const override
List all items in this collection.
void del(const std::vector< PathComponent > &components) override
Delete resource at the given path.
void set(const std::vector< PathComponent > &components, const DataPayload &data) override
Set resource data at the given path.
DataPayload get(const std::vector< PathComponent > &components) override
Get resource data at the given path.
ResourceRouter(std::shared_ptr< reusex::ProjectDB > db)
ResourceRouter(std::shared_ptr< reusex::ProjectDB > db)
std::variant< std::string, std::vector< uint8_t >, nlohmann::json > DataPayload
Data payload that can be returned by routers.