ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
rux::database::RouterRegistry Class Reference

Router registry for dispatching paths to appropriate routers. More...

#include <resource_router.hpp>

Public Member Functions

 RouterRegistry (std::shared_ptr< reusex::ProjectDB > db)
 Create routers for all resource types.
ResourceRouterget_router (std::string_view collection)
 Get router for a collection.

Detailed Description

Router registry for dispatching paths to appropriate routers.

Definition at line 89 of file resource_router.hpp.

Constructor & Destructor Documentation

◆ RouterRegistry()

rux::database::RouterRegistry::RouterRegistry ( std::shared_ptr< reusex::ProjectDB > db)
explicit

Create routers for all resource types.

Member Function Documentation

◆ get_router()

ResourceRouter & rux::database::RouterRegistry::get_router ( std::string_view collection)

Get router for a collection.

Parameters
collectionCollection name
Returns
Router for that collection
Exceptions
std::runtime_errorif collection not found

The documentation for this class was generated from the following file: