1 #ifndef GSLAM_DISPLAY_H 2 #define GSLAM_DISPLAY_H 11 Topic(
const Svar& cls=SvarClass::instance<Svar>(),
12 const std::string& name=
""):
13 _class(cls),_name(name) {}
15 std::string name()
const{
return _name;}
16 Svar type()
const{
return _class;}
26 const std::string& describe=
"")
27 :_value(value),_callback(callback),_describe(describe){}
29 void refresh(){
if(_refresh.isFunction()) _refresh();}
31 void notify(){
if(_callback.isFunction()) _callback();}
33 Svar _value,_callback,_refresh;
34 std::string _describe;
The Svar class, A Tiny Modern C++ Header Brings Unified Interface for Different Languages.
Definition: Svar.h:561
Class Topic is used by display panel to choose a Messenger Topic.
Definition: Display.h:9