MakeGuiConfig.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace armarx::RemoteGui
6 {
7  template<class T>
8  RemoteGui::WidgetPtr MakeGuiConfig(const std::string& name, const T& val)
9  {
12  static_assert(maker::value, "This type can't be used");
13  if (name.empty())
14  {
15  return maker::template create<RemoteGui::SimpleGridLayout>(val, "", name);
16  }
17  return maker::create(val, "", name);
18  }
19 }
20 
armarx::RemoteGui::MakeGuiConfig
RemoteGui::WidgetPtr MakeGuiConfig(const std::string &name, const T &val)
Definition: MakeGuiConfig.h:8
armarx::RemoteGui
Definition: LightweightRemoteGuiComponentPlugin.h:30
MakeGuiConfigStruct.h
ARMARX_TRACE
#define ARMARX_TRACE
Definition: trace.h:69
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::WidgetDescription::WidgetPtr
::IceInternal::Handle<::armarx::WidgetDescription::Widget > WidgetPtr
Definition: NJointControllerBase.h:66
T
float T
Definition: UnscentedKalmanFilterTest.cpp:35
armarx::meta::cfg::gui_definition_create
Definition: MakeGuiConfigStruct.h:8