mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData > Struct Template Reference

#include <mc_rtc/gui/Table.h>

Inheritance diagram for mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData >:
Collaboration diagram for mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData >:

Public Member Functions

 FormattedTableImpl (const std::string &name, GetHeader get_header_fn, GetFormat get_format_fn, GetData get_data_fn)
 
void write (mc_rtc::MessagePackBuilder &builder)
 
- Public Member Functions inherited from mc_rtc::gui::details::TableImpl< GetHeader, GetData >
 TableImpl (const std::string &name, GetHeader get_header_fn, GetData get_data_fn)
 
void write (mc_rtc::MessagePackBuilder &builder)
 
- Public Member Functions inherited from mc_rtc::gui::Element
const std::string & name () const
 
int id () const
 
void id (int idIn)
 
void write (mc_rtc::MessagePackBuilder &)
 
bool handleRequest (const mc_rtc::Configuration &)
 
 Element ()
 

Static Public Member Functions

static constexpr size_t write_size ()
 
- Static Public Member Functions inherited from mc_rtc::gui::details::TableImpl< GetHeader, GetData >
static constexpr size_t write_size ()
 
- Static Public Member Functions inherited from mc_rtc::gui::Element
static constexpr size_t write_size ()
 

Additional Inherited Members

- Static Public Attributes inherited from mc_rtc::gui::details::TableImpl< GetHeader, GetData >
static constexpr auto type = Elements::Table
 
- Protected Member Functions inherited from mc_rtc::gui::Element
 Element (const std::string &name)
 
- Protected Attributes inherited from mc_rtc::gui::Element
std::string name_
 
int id_
 

Detailed Description

template<typename GetHeader, typename GetFormat, typename GetData>
struct mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData >

Table should display a table of heterogeneous data

The user is responsible for making sure the header, format and data size match

Template Parameters
GetHeadershould return the header information for the table
GetFormatshould return formatting rules for the information
GetDatashould return data that can be converted to a JSON array of array (e.g. vector<vector<T>> or vector<tuple<...>>)

Constructor & Destructor Documentation

◆ FormattedTableImpl()

template<typename GetHeader , typename GetFormat , typename GetData >
mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData >::FormattedTableImpl ( const std::string &  name,
GetHeader  get_header_fn,
GetFormat  get_format_fn,
GetData  get_data_fn 
)
inline

Member Function Documentation

◆ write()

template<typename GetHeader , typename GetFormat , typename GetData >
void mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData >::write ( mc_rtc::MessagePackBuilder builder)
inline

◆ write_size()

template<typename GetHeader , typename GetFormat , typename GetData >
static constexpr size_t mc_rtc::gui::details::FormattedTableImpl< GetHeader, GetFormat, GetData >::write_size ( )
inlinestaticconstexpr

The documentation for this struct was generated from the following file: