Skip to main content

TableRegistry

TableRegistry

Non-Qt registry managing table definitions and built TableView instances.

#include <TableRegistry.hpp>

Public Functions

Name
TableRegistry(DataManager & data_manager)
~TableRegistry()
ComputerRegistry & getComputerRegistry()
ComputerRegistry const & getComputerRegistry() const
std::shared_ptr< DataManagerExtension > getDataManagerExtension() const
bool createTable(std::string const & table_id, std::string const & table_name, std::string const & table_description =““)
bool removeTable(std::string const & table_id)
bool hasTable(std::string const & table_id) const
TableInfo getTableInfo(std::string const & table_id) const
std::vector< std::string > getTableIds() const
std::vector< TableInfo > getAllTableInfo() const
bool setTableView(std::string const & table_id, std::shared_ptr< TableView > table_view)
bool updateTableInfo(std::string const & table_id, std::string const & table_name, std::string const & table_description =““)
bool updateTableRowSource(std::string const & table_id, std::string const & row_source_name)
bool addTableColumn(std::string const & table_id, ColumnInfo const & column_info)
bool updateTableColumn(std::string const & table_id, size_t column_index, ColumnInfo const & column_info)
bool removeTableColumn(std::string const & table_id, size_t column_index)
ColumnInfo getTableColumn(std::string const & table_id, size_t column_index) const
bool storeBuiltTable(std::string const & table_id, std::unique_ptr< TableView > table_view)
std::shared_ptr< TableView > getBuiltTable(std::string const & table_id) const
std::string generateUniqueTableId(std::string const & base_name =“Table”) const
bool addTableColumnWithTypeInfo(std::string const & table_id, ColumnInfo & column_info)
std::vector< std::string > getAvailableComputersForDataSource(std::string const & row_selector_type, std::string const & data_source_name) const
std::tuple< std::string, bool, std::string > getComputerTypeInfo(std::string const & computer_name) const
ComputerInfo const * getComputerInfo(std::string const & computer_name) const
std::vector< std::string > getAvailableOutputTypes() const
bool addColumnToBuilder(class TableViewBuilder & builder, ColumnInfo const & column_info) const
Add a column to a TableViewBuilder from a ColumnInfo specification.

Public Functions Documentation

function TableRegistry

explicit TableRegistry(
    DataManager & data_manager
)

function ~TableRegistry

~TableRegistry()

function getComputerRegistry

inline ComputerRegistry & getComputerRegistry()

function getComputerRegistry

inline ComputerRegistry const & getComputerRegistry() const

function getDataManagerExtension

inline std::shared_ptr< DataManagerExtension > getDataManagerExtension() const

function createTable

bool createTable(
    std::string const & table_id,
    std::string const & table_name,
    std::string const & table_description =""
)

function removeTable

bool removeTable(
    std::string const & table_id
)

function hasTable

bool hasTable(
    std::string const & table_id
) const

function getTableInfo

TableInfo getTableInfo(
    std::string const & table_id
) const

function getTableIds

std::vector< std::string > getTableIds() const

function getAllTableInfo

std::vector< TableInfo > getAllTableInfo() const

function setTableView

bool setTableView(
    std::string const & table_id,
    std::shared_ptr< TableView > table_view
)

function updateTableInfo

bool updateTableInfo(
    std::string const & table_id,
    std::string const & table_name,
    std::string const & table_description =""
)

function updateTableRowSource

bool updateTableRowSource(
    std::string const & table_id,
    std::string const & row_source_name
)

function addTableColumn

bool addTableColumn(
    std::string const & table_id,
    ColumnInfo const & column_info
)

function updateTableColumn

bool updateTableColumn(
    std::string const & table_id,
    size_t column_index,
    ColumnInfo const & column_info
)

function removeTableColumn

bool removeTableColumn(
    std::string const & table_id,
    size_t column_index
)

function getTableColumn

ColumnInfo getTableColumn(
    std::string const & table_id,
    size_t column_index
) const

function storeBuiltTable

bool storeBuiltTable(
    std::string const & table_id,
    std::unique_ptr< TableView > table_view
)

function getBuiltTable

std::shared_ptr< TableView > getBuiltTable(
    std::string const & table_id
) const

function generateUniqueTableId

std::string generateUniqueTableId(
    std::string const & base_name ="Table"
) const

function addTableColumnWithTypeInfo

bool addTableColumnWithTypeInfo(
    std::string const & table_id,
    ColumnInfo & column_info
)

function getAvailableComputersForDataSource

std::vector< std::string > getAvailableComputersForDataSource(
    std::string const & row_selector_type,
    std::string const & data_source_name
) const

function getComputerTypeInfo

std::tuple< std::string, bool, std::string > getComputerTypeInfo(
    std::string const & computer_name
) const

function getComputerInfo

ComputerInfo const * getComputerInfo(
    std::string const & computer_name
) const

function getAvailableOutputTypes

std::vector< std::string > getAvailableOutputTypes() const

function addColumnToBuilder

bool addColumnToBuilder(
    class TableViewBuilder & builder,
    ColumnInfo const & column_info
) const

Add a column to a TableViewBuilder from a ColumnInfo specification.

Parameters:

  • builder The TableViewBuilder to add the column to
  • column_info The column specification including data source, computer, and parameters

Return: True if the column was successfully added, false otherwise


Updated on 2026-11-13 at 20:25:39 +0000