mc_rtc::gui::FormElement< Derived, element > Struct Template Reference

#include <mc_rtc/gui/Form.h>

Public Types

using is_form_element_t = std::true_type
 

Public Member Functions

void write (mc_rtc::MessagePackBuilder &builder)
 
 FormElement ()
 

Static Public Member Functions

static constexpr size_t write_size ()
 
static constexpr bool is_dynamic ()
 

Static Public Attributes

static constexpr auto type = element
 

Protected Member Functions

 FormElement (const std::string &name, bool required)
 

Protected Attributes

std::string name_
 
bool required_
 

Member Typedef Documentation

◆ is_form_element_t

template<typename Derived , Elements element>
using mc_rtc::gui::FormElement< Derived, element >::is_form_element_t = std::true_type

Constructor & Destructor Documentation

◆ FormElement() [1/2]

template<typename Derived , Elements element>
mc_rtc::gui::FormElement< Derived, element >::FormElement ( )
inline

Invalid element

◆ FormElement() [2/2]

template<typename Derived , Elements element>
mc_rtc::gui::FormElement< Derived, element >::FormElement ( const std::string &  name,
bool  required 
)
inlineprotected

Member Function Documentation

◆ is_dynamic()

template<typename Derived , Elements element>
static constexpr bool mc_rtc::gui::FormElement< Derived, element >::is_dynamic ( )
inlinestaticconstexpr

◆ write()

template<typename Derived , Elements element>
void mc_rtc::gui::FormElement< Derived, element >::write ( mc_rtc::MessagePackBuilder builder)
inline

◆ write_size()

template<typename Derived , Elements element>
static constexpr size_t mc_rtc::gui::FormElement< Derived, element >::write_size ( )
inlinestaticconstexpr

Member Data Documentation

◆ name_

template<typename Derived , Elements element>
std::string mc_rtc::gui::FormElement< Derived, element >::name_
protected

◆ required_

template<typename Derived , Elements element>
bool mc_rtc::gui::FormElement< Derived, element >::required_
protected

◆ type

template<typename Derived , Elements element>
constexpr auto mc_rtc::gui::FormElement< Derived, element >::type = element
staticconstexpr

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