mc_rtc::gui::details::SchemaImpl< Callback > Struct Template Reference

#include <mc_rtc/gui/Schema.h>

Inheritance diagram for mc_rtc::gui::details::SchemaImpl< Callback >:
Collaboration diagram for mc_rtc::gui::details::SchemaImpl< Callback >:

Public Member Functions

 SchemaImpl (const std::string &name, const std::string &schema, Callback cb)
 
void write (mc_rtc::MessagePackBuilder &builder)
 
- Public Member Functions inherited from mc_rtc::gui::CallbackElement< Element, Callback >
bool handleRequest (const mc_rtc::Configuration &data)
 
 CallbackElement (const std::string &name, Callback cb, Args &&... args)
 
 CallbackElement ()
 
- 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::Element
static constexpr size_t write_size ()
 

Static Public Attributes

static constexpr auto type = Elements::Schema
 

Additional Inherited Members

- Protected Member Functions inherited from mc_rtc::gui::Element
 Element (const std::string &name)
 
- Protected Attributes inherited from mc_rtc::gui::CallbackElement< Element, Callback >
Callback cb_
 
- Protected Attributes inherited from mc_rtc::gui::Element
std::string name_
 
int id_
 

Detailed Description

template<typename Callback>
struct mc_rtc::gui::details::SchemaImpl< Callback >

Should display a form using the data provided in the configured schema folder

The schema folder should be relative to mc_rtc install path

Template Parameters
CallbackCalled with form data when the user completes the form

Constructor & Destructor Documentation

◆ SchemaImpl()

template<typename Callback >
mc_rtc::gui::details::SchemaImpl< Callback >::SchemaImpl ( const std::string &  name,
const std::string &  schema,
Callback  cb 
)
inline

Member Function Documentation

◆ write()

template<typename Callback >
void mc_rtc::gui::details::SchemaImpl< Callback >::write ( mc_rtc::MessagePackBuilder builder)
inline

◆ write_size()

template<typename Callback >
static constexpr size_t mc_rtc::gui::details::SchemaImpl< Callback >::write_size ( )
inlinestaticconstexpr

Member Data Documentation

◆ type

template<typename Callback >
constexpr auto mc_rtc::gui::details::SchemaImpl< Callback >::type = Elements::Schema
staticconstexpr

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