roviz  0.7
Code Documentation of roviz
config_impl_cmdline.h
1 #ifndef CONFIG_IMPL_CMDLINE_H
2 #define CONFIG_IMPL_CMDLINE_H
3 
4 #include <string>
5 #include "core/export_handling.h"
6 #include "config/config_storage_type.h"
7 #include "backend_cmdline/config_impl_base_cmdline.h"
8 
19 template<class T>
20 class ROVIZ_EXPORT ConfigImplCmdline : public ConfigImplBaseCmdline
21 {
22 public:
29  void *value(void) override;
30 
40  void load(std::string value) override;
41 
52  void lock(void) override;
53 
64  void unlock(void) override;
65 
75  bool changed(void) override;
76 
77 private:
78  typename ConfigStorageType<T>::type val;
79 };
80 
81 #endif // CONFIG_IMPL_CMDLINE_H
The Config implementation for the Cmdline backend.
Definition: config_impl_cmdline.h:20
virtual void * value(void)=0
Get the value of the config.
Base class for ConfigImplCmdline.
Definition: config_impl_base_cmdline.h:16
virtual bool changed(void)=0
Check if the config value changed.
virtual void lock(void)=0
Lock the mutex of the config.
virtual void unlock(void)=0
Unlock the mutex of the config.
virtual void load(std::string value)=0
Load the value from a string.