|
roviz
0.7
Code Documentation of roviz
|
Base class for all config implementations. More...
#include <config_impl.h>


Public Member Functions | |
| virtual void * | value (void)=0 |
| Get the value of the config. More... | |
| virtual void | lock (void)=0 |
| Lock the mutex of the config. More... | |
| virtual void | unlock (void)=0 |
| Unlock the mutex of the config. More... | |
| virtual bool | changed (void)=0 |
| Check if the config value changed. More... | |
Base class for all config implementations.
|
pure virtual |
Check if the config value changed.
Implemented in ConfigImplDev< T >, and ConfigImplCmdline< T >.
|
pure virtual |
Lock the mutex of the config.
Implemented in ConfigImplDev< T >, and ConfigImplCmdline< T >.
|
pure virtual |
Unlock the mutex of the config.
Implemented in ConfigImplDev< T >, and ConfigImplCmdline< T >.
|
pure virtual |
Get the value of the config.
This function uses a type-erasure technique to work around the fact that virtual templates are not allowed. We only know the true type of the value if we know the template type, but this function cannot be a template because it has to be overridden by the actual implementation. Because of that, we return a void* to the value, assuming that the Config class, which is a template and knows the type of the value, will cast this pointer correctly and returns a properly typed value.
Implemented in ConfigImplDev< T >, and ConfigImplCmdline< T >.
1.8.13