ORE Studio 0.0.4
Loading...
Searching...
No Matches
Classes | Functions | Variables
ores::variability::domain Namespace Reference

Domain types for system variability. More...

Classes

struct  system_setting
 Represents a typed system setting in the domain layer. More...
 
struct  system_setting_definition
 Metadata for a well-known system setting. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const system_setting &v)
 Dumps a system_setting object to a stream in JSON format.
 
std::string convert_to_table (const std::vector< system_setting > &v)
 Converts system settings to ASCII table format.
 
std::ostream & operator<< (std::ostream &s, const std::vector< system_setting > &v)
 Dumps system settings to a stream in table format.
 
const system_setting_definitionget_setting_definition (std::string_view name)
 Looks up a setting definition by name.
 
std::string_view get_setting_default (std::string_view name)
 Returns the default value for a registered setting name.
 
std::string convert_to_json (const system_setting &v)
 Converts a system_setting to a JSON string.
 
std::string convert_to_json (const std::vector< system_setting > &v)
 

Variables

constexpr std::array system_setting_definitions
 Compile-time registry of all well-known system settings.
 

Detailed Description

Domain types for system variability.

Contains core system settings types with JSON I/O support.

Function Documentation

◆ get_setting_definition()

const system_setting_definition & get_setting_definition ( std::string_view  name)

Looks up a setting definition by name.

Exceptions
std::out_of_rangeif name is not registered.
Here is the caller graph for this function:

◆ get_setting_default()

std::string_view get_setting_default ( std::string_view  name)

Returns the default value for a registered setting name.

Exceptions
std::out_of_rangeif name is not registered.
Here is the caller graph for this function:

Variable Documentation

◆ system_setting_definitions

constexpr std::array system_setting_definitions
constexpr

Compile-time registry of all well-known system settings.

Modules add their settings here. JWT-related settings are added in the JWT token refresh plan PR.