The base class for a value that is produced by this registry. More...
#include <WebServerControlTypeRegistry.h>
Classes | |
struct | Exception |
Common exception for parsing related errors in converting JSON to a value. More... | |
Public Member Functions | |
ValueBase (const std::string &name, const std::string &type) | |
Constructor. More... | |
virtual | ~ValueBase () |
const std::string & | name () const |
const std::string & | type () const |
virtual void | setControllableValue (WebServerControl &control)=0 |
Sets the controllable value given the name and type via the controllable interface in control . More... | |
Private Attributes | |
const std::string | _name |
The name that the value is for. More... | |
const std::string | _type |
The string representation of the type. More... | |
The base class for a value that is produced by this registry.
Definition at line 41 of file WebServerControlTypeRegistry.h.
|
inline |
Constructor.
name | The name that the value is for (typically a controllable path) |
type | The string representationg of the type |
Definition at line 49 of file WebServerControlTypeRegistry.h.
|
inlinevirtual |
Definition at line 50 of file WebServerControlTypeRegistry.h.
|
inline |
Definition at line 55 of file WebServerControlTypeRegistry.h.
Referenced by WebServerControl::TypedValueBase< std::vector< T > >::setControllableValue().
|
pure virtual |
Sets the controllable value given the name and type via the controllable interface in control
.
Will broadcast the value for setting it.
Implemented in WebServerControl::TypedValueBase< T >, and WebServerControl::TypedValueBase< std::vector< T > >.
|
inline |
Definition at line 59 of file WebServerControlTypeRegistry.h.
|
private |
The name that the value is for.
Definition at line 84 of file WebServerControlTypeRegistry.h.
Referenced by name().
|
private |
The string representation of the type.
Definition at line 86 of file WebServerControlTypeRegistry.h.
Referenced by type().