|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Router for project metadata. More...
#include <project_router.hpp>


Public Member Functions | |
| DataPayload | get (const std::vector< PathComponent > &components) override |
| Get resource data at the given path. | |
| void | set (const std::vector< PathComponent > &components, const DataPayload &data) override |
| Set resource data at the given path. | |
| void | del (const std::vector< PathComponent > &components) override |
| Delete resource at the given path. | |
| std::vector< std::string > | list () const override |
| List all items in this collection. | |
| ResourceRouter (std::shared_ptr< reusex::ProjectDB > db) | |
| Public Member Functions inherited from rux::database::ResourceRouter | |
| ResourceRouter (std::shared_ptr< reusex::ProjectDB > db) | |
| virtual | ~ResourceRouter ()=default |
| std::optional< std::string > | resolve_index (int index) const |
| Resolve array index to item name/id. | |
Additional Inherited Members | |
| Protected Attributes inherited from rux::database::ResourceRouter | |
| std::shared_ptr< reusex::ProjectDB > | db_ |
Router for project metadata.
Handles paths like:
Note: "projects" is a collection (array), while "project" is a convenience alias for the first/only project.
Definition at line 24 of file project_router.hpp.
|
overridevirtual |
Delete resource at the given path.
| components | Parsed path components (after collection) |
| std::runtime_error | if operation fails |
Implements rux::database::ResourceRouter.
|
overridevirtual |
Get resource data at the given path.
| components | Parsed path components (after collection) |
| std::runtime_error | if path is invalid or resource not found |
Implements rux::database::ResourceRouter.
|
overridevirtual |
List all items in this collection.
Used for wildcard expansion and array indexing. Returns items in deterministic order (see MEMORY.md).
Implements rux::database::ResourceRouter.
|
inlineexplicit |
Definition at line 28 of file resource_router.hpp.
|
overridevirtual |
Set resource data at the given path.
| components | Parsed path components (after collection) |
| data | Input data |
| std::runtime_error | if operation fails |
Implements rux::database::ResourceRouter.