13 static constexpr std::string_view m_name =
"SharedMemory";
14 static constexpr std::string_view m_alias =
"Shm";
15 static constexpr std::string_view m_description =
16 "The component can be used to manage the Shared Memory Segments and "
18 std::shared_ptr<SharedMemoryApi> m_sharedMemoryApi;
21 enum Commands { Undefined, ShowSegments, ShowRepositories, ShrinkSegment, GrowSegment, ExportRepository };
24 std::optional<std::string> m_segmentName;
25 std::optional<std::string> m_size;
26 std::optional<std::string> m_repositoryName;
27 std::optional<std::string> m_type;
28 std::optional<std::string> m_file;
29 std::optional<std::string> m_uuid;
34 static void printSegments(
const std::vector<SharedMemorySegmentDto> &
segments);
37 static void printRepositories(
const std::vector<SharedMemoryRepositoryDto> &
repositories);
40 void handleExportRepository();