Go to the documentation of this file.
61 const std::string &
name()
const {
return name_; }
67 int id()
const {
return id_; }
70 void id(
int idIn) { id_ = idIn; }
92 Element(
const std::string & name);
103 template<
typename GetT>
125 template<
typename ElementT,
typename Callback>
134 template<
typename... Args>
136 : ElementT(name,
std::forward<Args>(args)...),
cb_(cb)
151 template<
typename ElementT>
154 template<
typename... Args>
156 : ElementT(name,
std::forward<Args>(args)...)
165 template<
typename GetT,
typename SetT>
182 template<
typename ElementT,
typename Callback>
191 template<
typename... Args>
Definition: elements.h:58
Simplify access to values hold within a JSON file.
Definition: Configuration.h:165
static constexpr size_t write_size()
Definition: elements.h:106
Definition: MessagePackBuilder.h:86
VoidCallbackElement()
Definition: elements.h:198
bool handleRequest(const mc_rtc::Configuration &)
Definition: elements.h:86
Element()
Definition: elements.h:89
DataElement(const std::string &name, GetT get_fn)
Definition: elements.h:111
CallbackElement(const std::string &name, std::nullptr_t, Args &&... args)
Definition: elements.h:155
GetT get_fn_
Definition: elements.h:117
int id() const
Definition: elements.h:67
VoidCallbackElement(const std::string &name, Callback cb, Args &&... args)
Definition: elements.h:192
Definition: elements.h:126
void write(mc_rtc::MessagePackBuilder &)
Definition: elements.h:83
@ PolyhedronTrianglesList
Callback cb_
Definition: elements.h:144
std::string name_
Definition: elements.h:94
DataElement()
Definition: elements.h:114
void id(int idIn)
Definition: elements.h:70
CallbackElement()
Definition: elements.h:141
@ PolyhedronVerticesTriangles
bool handleRequest(const mc_rtc::Configuration &data)
Definition: elements.h:128
Elements
Definition: elements.h:22
int id_
Definition: elements.h:96
Definition: elements.h:104
bool handleRequest(const mc_rtc::Configuration &)
Definition: elements.h:185
static constexpr size_t write_size()
Definition: elements.h:76
CallbackElement(const std::string &name, Callback cb, Args &&... args)
Definition: elements.h:135
Definition: elements.h:183
void write(mc_rtc::MessagePackBuilder &builder)
Definition: elements.h:108
CallbackElement()
Definition: elements.h:161
#define MC_RTC_GUI_DLLAPI
Definition: api.h:50
const std::string & name() const
Definition: elements.h:61