|
commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
|
Abstract provenance envelope. More...
#include <origin.hpp>

Public Member Functions | |
| virtual std::string_view | kind () const noexcept=0 |
The stable discriminator for this origin (e.g. "core"). | |
| virtual std::unique_ptr< IOrigin > | clone () const =0 |
| A deep, independent copy. | |
| virtual const DisplayInfo & | info () const =0 |
Presentation metadata for this origin's kind (the description), sourced from the concrete type's static display_info(). | |
Abstract provenance envelope.
Hold one through OriginPtr; query its kind() discriminator, copy it with clone(), and read its description via info().