ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
variability_commands Class Reference

Manages commands related to variability subsystem. More...

#include <variability_commands.hpp>

Collaboration diagram for variability_commands:
Collaboration graph

Static Public Member Functions

static void register_commands (cli::Menu &root_menu, ores::nats::service::nats_client &session)
 Register variability-related commands.
 
static void process_list_settings (std::ostream &out, ores::nats::service::nats_client &session)
 Process a list settings request.
 
static void process_save_setting (std::ostream &out, ores::nats::service::nats_client &session, std::string name, std::string value, std::string data_type, std::string description, std::string change_reason_code, std::string change_commentary)
 Process a save setting request.
 
static void process_delete_setting (std::ostream &out, ores::nats::service::nats_client &session, std::string name)
 Process a delete setting request.
 
static void process_get_setting_history (std::ostream &out, ores::nats::service::nats_client &session, std::string name)
 Process a get setting history request.
 

Detailed Description

Manages commands related to variability subsystem.

Handles system settings, configuration toggles, and other variability-related operations.

Member Function Documentation

◆ register_commands()

void register_commands ( cli::Menu &  root_menu,
ores::nats::service::nats_client session 
)
static

Register variability-related commands.

Creates the variability submenu and adds variability operations.

◆ process_list_settings()

void process_list_settings ( std::ostream &  out,
ores::nats::service::nats_client session 
)
static

Process a list settings request.

Retrieves all system settings from the server and displays them.

Parameters
outOutput stream for results
sessionClient session for connectivity.
Here is the caller graph for this function:

◆ process_save_setting()

void process_save_setting ( std::ostream &  out,
ores::nats::service::nats_client session,
std::string  name,
std::string  value,
std::string  data_type,
std::string  description,
std::string  change_reason_code,
std::string  change_commentary 
)
static

Process a save setting request.

Creates or updates a system setting with the provided details.

Parameters
outOutput stream for results
sessionClient session for connectivity.
nameUnique setting name
valueSetting value
data_typeSetting data type (boolean, integer, string, json)
descriptionHuman-readable description
change_reason_codeCode identifying the reason for the change
change_commentaryFree-text commentary
Here is the caller graph for this function:

◆ process_delete_setting()

void process_delete_setting ( std::ostream &  out,
ores::nats::service::nats_client session,
std::string  name 
)
static

Process a delete setting request.

Deletes a system setting by its name. Requires authentication.

Parameters
outOutput stream for results
sessionClient session for connectivity.
nameName of the setting to delete
Here is the caller graph for this function:

◆ process_get_setting_history()

void process_get_setting_history ( std::ostream &  out,
ores::nats::service::nats_client session,
std::string  name 
)
static

Process a get setting history request.

Retrieves the version history for a system setting by its name.

Parameters
outOutput stream for results
sessionClient session for connectivity.
nameName of the setting
Here is the caller graph for this function: