MakeGuiConfig.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MakeGuiConfig/MakeGuiConfigStruct.h
"
4
5
namespace
armarx::RemoteGui
6
{
7
template
<
class
T>
8
RemoteGui::WidgetPtr
9
MakeGuiConfig
(
const
std::string& name,
const
T
& val)
10
{
11
ARMARX_TRACE
;
12
using
maker =
armarx::meta::cfg::gui_definition_create<T>
;
13
static_assert
(maker::value,
"This type can't be used"
);
14
if
(name.empty())
15
{
16
return
maker::template create<RemoteGui::SimpleGridLayout>(val,
""
, name);
17
}
18
return
maker::create(val,
""
, name);
19
}
20
}
// namespace armarx::RemoteGui
MakeGuiConfigStruct.h
T
float T
Definition
UnscentedKalmanFilterTest.cpp:38
armarx::RemoteGui
Definition
LightweightRemoteGuiComponentPlugin.h:31
armarx::RemoteGui::MakeGuiConfig
RemoteGui::WidgetPtr MakeGuiConfig(const std::string &name, const T &val)
Definition
MakeGuiConfig.h:9
armarx::meta::cfg::gui_definition_create
Definition
MakeGuiConfigStruct.h:9
ARMARX_TRACE
#define ARMARX_TRACE
Definition
trace.h:77
ArmarXGui
libraries
RemoteGui
ConfigIntrospection
MakeGuiConfig.h
Generated by
1.13.2