MakeGuiConfig.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace armarx::RemoteGui
6 {
7  template <class T>
9  MakeGuiConfig(const std::string& name, const T& val)
10  {
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
armarx::RemoteGui::MakeGuiConfig
RemoteGui::WidgetPtr MakeGuiConfig(const std::string &name, const T &val)
Definition: MakeGuiConfig.h:9
armarx::RemoteGui
Definition: LightweightRemoteGuiComponentPlugin.h:30
MakeGuiConfigStruct.h
ARMARX_TRACE
#define ARMARX_TRACE
Definition: trace.h:77
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:855
armarx::WidgetDescription::WidgetPtr
::IceInternal::Handle<::armarx::WidgetDescription::Widget > WidgetPtr
Definition: NJointControllerBase.h:67
T
float T
Definition: UnscentedKalmanFilterTest.cpp:38
armarx::meta::cfg::gui_definition_create
Definition: MakeGuiConfigStruct.h:8