|
ORE Studio 0.0.4
|
Manages commands related to change reasons. More...
#include <change_reasons_commands.hpp>

Static Public Member Functions | |
| static void | register_commands (cli::Menu &root_menu, comms::net::client_session &session) |
| Register change reason-related commands. | |
| static void | process_get_change_reasons (std::ostream &out, comms::net::client_session &session) |
| Process a get change reasons request. | |
| static void | process_add_change_reason (std::ostream &out, comms::net::client_session &session, std::string code, std::string description, std::string category_code, std::string change_commentary) |
| Process an add change reason request. | |
| static void | process_delete_change_reason (std::ostream &out, comms::net::client_session &session, std::string code) |
| Process a delete change reason request. | |
| static void | process_get_change_reason_history (std::ostream &out, comms::net::client_session &session, std::string code) |
| Process a get change reason history request. | |
Manages commands related to change reasons.
|
static |
Register change reason-related commands.
Creates the change-reasons submenu and adds operations.
|
static |
Process a get change reasons request.
Retrieves all change reasons from the server and displays them.
| out | Output stream for results |
| session | Client session for connectivity. |

|
static |
Process an add change reason request.
Creates a new change reason with the provided details.
| out | Output stream for results |
| session | Client session for connectivity. |
| code | Unique reason code (e.g., "static_data.correction") |
| description | Human-readable description |
| category_code | Category this reason belongs to |
| change_commentary | Free-text commentary explaining the change |

|
static |
Process a delete change reason request.
Deletes a change reason by its code. Requires authentication.
| out | Output stream for results |
| session | Client session for connectivity. |
| code | Code of the change reason to delete |

|
static |
Process a get change reason history request.
Retrieves the version history for a change reason by its code.
| out | Output stream for results |
| session | Client session for connectivity. |
| code | Code of the change reason |
