|
ORE Studio 0.0.4
|
Manages pagination navigation commands. More...
#include <navigation_commands.hpp>

Static Public Member Functions | |
| static void | register_commands (cli::Menu &root_menu, pagination_context &pagination) |
| Register navigation commands. | |
| static void | process_next (std::ostream &out, pagination_context &pagination) |
| Move to the next page. | |
| static void | process_prev (std::ostream &out, pagination_context &pagination) |
| Move to the previous page. | |
| static void | process_first (std::ostream &out, pagination_context &pagination) |
| Jump to the first page. | |
| static void | process_last (std::ostream &out, pagination_context &pagination) |
| Jump to the last page. | |
| static void | process_page_size (std::ostream &out, pagination_context &pagination, std::uint32_t size=0) |
| Get or set the page size. | |
Manages pagination navigation commands.
Provides commands for navigating through paginated result sets:
|
static |
Register navigation commands.
Adds pagination navigation commands to the root menu.
| root_menu | The root menu to add commands to. |
| pagination | The pagination context for state management. |
|
static |
Move to the next page.
Advances the offset by page_size and re-invokes the list command.
| out | Output stream for results. |
| pagination | The pagination context. |

|
static |
Move to the previous page.
Decrements the offset by page_size and re-invokes the list command.
| out | Output stream for results. |
| pagination | The pagination context. |

|
static |
Jump to the first page.
Sets offset to 0 and re-invokes the list command.
| out | Output stream for results. |
| pagination | The pagination context. |

|
static |
Jump to the last page.
Sets offset to show the last page and re-invokes the list command.
| out | Output stream for results. |
| pagination | The pagination context. |

|
static |
Get or set the page size.
Without argument, displays the current page size. With argument, sets the page size and resets all entity offsets.
| out | Output stream for results. |
| pagination | The pagination context. |
| size | Optional new page size (0 means just show current). |
