commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
Loading...
Searching...
No Matches
comms::IOrigin Class Referenceabstract

Abstract provenance envelope. More...

#include <origin.hpp>

Inheritance diagram for comms::IOrigin:

Public Member Functions

virtual std::string_view kind () const noexcept=0
 The stable discriminator for this origin (e.g. "core").
 
virtual std::unique_ptr< IOriginclone () const =0
 A deep, independent copy.
 
virtual const DisplayInfoinfo () const =0
 Presentation metadata for this origin's kind (the description), sourced from the concrete type's static display_info().
 

Detailed Description

Abstract provenance envelope.

Hold one through OriginPtr; query its kind() discriminator, copy it with clone(), and read its description via info().


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