CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::TableController Class Reference

#include <TableController.h>

Collaboration diagram for carta::TableController:
[legend]

Public Member Functions

 TableController ()
 
void OnFileListRequest (const CARTA::CatalogListRequest &file_list_request, CARTA::CatalogListResponse &file_list_response)
 
void OnFileInfoRequest (const CARTA::CatalogFileInfoRequest &file_info_request, CARTA::CatalogFileInfoResponse &file_info_response)
 
void OnOpenFileRequest (const CARTA::OpenCatalogFile &open_file_request, CARTA::OpenCatalogFileAck &open_file_response)
 
void OnCloseFileRequest (const CARTA::CloseCatalogFile &close_file_request)
 
void OnFilterRequest (const CARTA::CatalogFilterRequest &filter_request, std::function< void(const CARTA::CatalogFilterResponse &)> partial_results_callback)
 
void StopGettingFileList ()
 
void SetProgressCallBack (const std::function< void(CARTA::ListProgress)> &progress_callback)
 

Protected Member Functions

void PopulateHeaders (google::protobuf::RepeatedPtrField< CARTA::CatalogHeader > *headers, const Table &table)
 
void ApplyFilter (const CARTA::FilterConfig &filter_config, TableView &view)
 
fs::path GetPath (std::string directory, std::string name="")
 

Static Protected Member Functions

static bool FilterParamsChanged (const std::vector< CARTA::FilterConfig > &filter_configs, std::string sort_column, CARTA::SortingType sorting_type, const TableViewCache &cached_config)
 

Protected Attributes

std::unordered_map< int, Table_tables
 
std::unordered_map< int, TableViewCache_view_cache
 

Private Attributes

volatile bool _stop_getting_file_list
 
volatile bool _first_report_made
 
std::function< void(CARTA::ListProgress)> _progress_callback
 
std::string _top_level_folder
 
std::string _starting_folder
 

Constructor & Destructor Documentation

◆ TableController()

TableController::TableController ( )
Here is the call graph for this function:

Member Function Documentation

◆ ApplyFilter()

void TableController::ApplyFilter ( const CARTA::FilterConfig &  filter_config,
TableView view 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FilterParamsChanged()

bool TableController::FilterParamsChanged ( const std::vector< CARTA::FilterConfig > &  filter_configs,
std::string  sort_column,
CARTA::SortingType  sorting_type,
const TableViewCache cached_config 
)
staticprotected
Here is the caller graph for this function:

◆ GetPath()

fs::path TableController::GetPath ( std::string  directory,
std::string  name = "" 
)
protected
Here is the caller graph for this function:

◆ OnCloseFileRequest()

void TableController::OnCloseFileRequest ( const CARTA::CloseCatalogFile &  close_file_request)

◆ OnFileInfoRequest()

void TableController::OnFileInfoRequest ( const CARTA::CatalogFileInfoRequest &  file_info_request,
CARTA::CatalogFileInfoResponse &  file_info_response 
)
Here is the call graph for this function:

◆ OnFileListRequest()

void TableController::OnFileListRequest ( const CARTA::CatalogListRequest &  file_list_request,
CARTA::CatalogListResponse &  file_list_response 
)
Here is the call graph for this function:

◆ OnFilterRequest()

void TableController::OnFilterRequest ( const CARTA::CatalogFilterRequest &  filter_request,
std::function< void(const CARTA::CatalogFilterResponse &)>  partial_results_callback 
)
Here is the call graph for this function:

◆ OnOpenFileRequest()

void TableController::OnOpenFileRequest ( const CARTA::OpenCatalogFile &  open_file_request,
CARTA::OpenCatalogFileAck &  open_file_response 
)
Here is the call graph for this function:

◆ PopulateHeaders()

void TableController::PopulateHeaders ( google::protobuf::RepeatedPtrField< CARTA::CatalogHeader > *  headers,
const Table table 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetProgressCallBack()

void carta::TableController::SetProgressCallBack ( const std::function< void(CARTA::ListProgress)> &  progress_callback)
inline

◆ StopGettingFileList()

void carta::TableController::StopGettingFileList ( )
inline

Member Data Documentation

◆ _first_report_made

volatile bool carta::TableController::_first_report_made
private

◆ _progress_callback

std::function<void(CARTA::ListProgress)> carta::TableController::_progress_callback
private

◆ _starting_folder

std::string carta::TableController::_starting_folder
private

◆ _stop_getting_file_list

volatile bool carta::TableController::_stop_getting_file_list
private

◆ _tables

std::unordered_map<int, Table> carta::TableController::_tables
protected

◆ _top_level_folder

std::string carta::TableController::_top_level_folder
private

◆ _view_cache

std::unordered_map<int, TableViewCache> carta::TableController::_view_cache
protected

The documentation for this class was generated from the following files: