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

Manages compression settings for the shell client. More...

#include <compression_commands.hpp>

Collaboration diagram for compression_commands:
Collaboration graph

Static Public Member Functions

static void register_commands (cli::Menu &root)
 Register compression management commands.
 
static std::uint8_t get_supported_compression () noexcept
 Get the current compression support bitmask.
 
static void process_compression (std::ostream &out, const std::string &enable, const std::string &algorithm="")
 Process a compression command.
 

Detailed Description

Manages compression settings for the shell client.

Provides commands to enable/disable compression and select the algorithm. The compression setting is applied when establishing new connections.

Member Function Documentation

◆ register_commands()

void register_commands ( cli::Menu &  root)
static

Register compression management commands.

Adds compression command to the root menu.

Parameters
rootThe root menu to add commands to

◆ get_supported_compression()

static std::uint8_t get_supported_compression ( )
staticnoexcept

Get the current compression support bitmask.

Used by connection_commands when establishing connections.

Returns
Current compression support bitmask
Here is the caller graph for this function:

◆ process_compression()

void process_compression ( std::ostream &  out,
const std::string &  enable,
const std::string &  algorithm = "" 
)
static

Process a compression command.

Handles "compression off", "compression on", and "compression on <algorithm>" commands.

Parameters
outOutput stream for user feedback
enableWhether to enable compression ("on") or disable ("off")
algorithmOptional algorithm name (zlib, gzip, bzip2)
Here is the caller graph for this function: