|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Classes | |
| class | CloudRouter |
| Router for point cloud resources. More... | |
| class | InputHandler |
| Handles input for set operations. More... | |
| class | MeshRouter |
| Router for mesh resources. More... | |
| class | PanoramaRouter |
| Router for panoramic image resources. More... | |
| class | PassportRouter |
| Router for material passport resources. More... | |
| class | PathError |
| Exception thrown when path parsing fails. More... | |
| struct | PathComponent |
| Represents a single component in a resource path. More... | |
| class | ProjectRouter |
| Router for project metadata. More... | |
| class | ResourceRouter |
| Base interface for resource routers. More... | |
| class | RouterRegistry |
| Router registry for dispatching paths to appropriate routers. More... | |
Typedefs | |
| using | DataPayload |
| Data payload that can be returned by routers. | |
Enumerations | |
| enum class | OutputFormat { Binary , JSON , Text } |
| Output format types. More... | |
| enum class | InputSource { Stdin , Inline , None } |
| Input source for set operations. More... | |
| enum class | ComponentType { Collection , Item , Property , Index } |
| Type of path component. More... | |
Functions | |
| OutputFormat | detect_format (const DataPayload &payload) |
| Detect format from payload type. | |
| void | write_output (const DataPayload &payload, bool force_pretty=false) |
| Write data to stdout with appropriate formatting. | |
| void | write_to_file (const DataPayload &payload, const std::filesystem::path &file_path) |
| Write data to a file. | |
| bool | is_stdout_tty () |
| Check if stdout is a TTY (for format detection). | |
| std::string | json_to_text (const nlohmann::json &j) |
| Convert JSON to text (for scalar values). | |
| std::vector< PathComponent > | parse_path (std::string_view path) |
| Parse a resource path into components. | |
| bool | is_valid_collection (std::string_view name) |
| Check if a collection name is valid. | |
| std::vector< std::string > | expand_wildcard (std::string_view pattern, const std::vector< std::string > &items) |
| Expand wildcard patterns in item names. | |
| bool | matches_wildcard (std::string_view str, std::string_view pattern) |
| Check if a string matches a wildcard pattern. | |
| std::vector< std::vector< PathComponent > > | expand_wildcards (const std::vector< PathComponent > &components, ResourceRouter &router) |
| Helper to expand wildcards in path components. | |
Data payload that can be returned by routers.
Variant of:
Definition at line 33 of file format_handler.hpp.
|
strong |
Type of path component.
| Enumerator | |
|---|---|
| Collection | |
| Item | |
| Property | |
| Index | |
Definition at line 27 of file path_parser.hpp.
|
strong |
Input source for set operations.
| Enumerator | |
|---|---|
| Stdin | |
| Inline | |
| None | |
Definition at line 19 of file input_handler.hpp.
|
strong |
| OutputFormat rux::database::detect_format | ( | const DataPayload & | payload | ) |
Detect format from payload type.
| payload | Data payload |
| std::vector< std::string > rux::database::expand_wildcard | ( | std::string_view | pattern, |
| const std::vector< std::string > & | items ) |
Expand wildcard patterns in item names.
| pattern | Pattern with wildcards (e.g., "scan*", "*_preprocessed") |
| items | Available items to match against |
| std::vector< std::vector< PathComponent > > rux::database::expand_wildcards | ( | const std::vector< PathComponent > & | components, |
| ResourceRouter & | router ) |
Helper to expand wildcards in path components.
| components | Path components (may contain wildcards) |
| router | Router for the collection |
| bool rux::database::is_stdout_tty | ( | ) |
Check if stdout is a TTY (for format detection).
| bool rux::database::is_valid_collection | ( | std::string_view | name | ) |
Check if a collection name is valid.
Valid collections: clouds, materials, meshes, projects
| name | Collection name to validate |
| std::string rux::database::json_to_text | ( | const nlohmann::json & | j | ) |
Convert JSON to text (for scalar values).
Extracts the value from JSON and returns as plain text string. Works for strings, numbers, booleans.
| j | JSON value |
| bool rux::database::matches_wildcard | ( | std::string_view | str, |
| std::string_view | pattern ) |
Check if a string matches a wildcard pattern.
| str | String to match |
| pattern | Pattern with wildcards |
| std::vector< PathComponent > rux::database::parse_path | ( | std::string_view | path | ) |
Parse a resource path into components.
Syntax:
Grammar: path ::= collection | collection.item | collection.item.property | collection[index] | collection[index].property
| path | Resource path to parse |
| PathError | if path is invalid |
Examples:
| void rux::database::write_output | ( | const DataPayload & | payload, |
| bool | force_pretty = false ) |
Write data to stdout with appropriate formatting.
Handles:
| payload | Data to write |
| force_pretty | Force pretty-print JSON even for non-TTY |
| void rux::database::write_to_file | ( | const DataPayload & | payload, |
| const std::filesystem::path & | file_path ) |
Write data to a file.
| payload | Data to write |
| file_path | Output file path |