mc_rtc::gui::CallbackElement< ElementT, Callback > Struct Template Reference

#include <mc_rtc/gui/elements.h>

Inheritance diagram for mc_rtc::gui::CallbackElement< ElementT, Callback >:
Collaboration diagram for mc_rtc::gui::CallbackElement< ElementT, Callback >:

Public Member Functions

bool handleRequest (const mc_rtc::Configuration &data)
 
template<typename... Args>
 CallbackElement (const std::string &name, Callback cb, Args &&... args)
 
 CallbackElement ()
 

Protected Attributes

Callback cb_
 

Detailed Description

template<typename ElementT, typename Callback>
struct mc_rtc::gui::CallbackElement< ElementT, Callback >

A generic element to handle request from the client

This is a common building block for other elements.

Constructor & Destructor Documentation

◆ CallbackElement() [1/2]

template<typename ElementT , typename Callback >
template<typename... Args>
mc_rtc::gui::CallbackElement< ElementT, Callback >::CallbackElement ( const std::string &  name,
Callback  cb,
Args &&...  args 
)
inline

◆ CallbackElement() [2/2]

template<typename ElementT , typename Callback >
mc_rtc::gui::CallbackElement< ElementT, Callback >::CallbackElement ( )
inline

Invalid element

Member Function Documentation

◆ handleRequest()

template<typename ElementT , typename Callback >
bool mc_rtc::gui::CallbackElement< ElementT, Callback >::handleRequest ( const mc_rtc::Configuration data)
inline

Member Data Documentation

◆ cb_

template<typename ElementT , typename Callback >
Callback mc_rtc::gui::CallbackElement< ElementT, Callback >::cb_
protected

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