Class containing a value to be controlled. More...
#include <WebServerControl.h>
Public Types | |
| using | value_type = T |
| The underlying type of the value. | |
Public Member Functions | |
| ControlledValue (const std::string &name, const std::string &type) | |
| ControlledValue (const std::string &name, const std::string &type, const T &value) | |
| virtual void | setControllableValue (WebServerControl &control) override final |
Sets the controllable value given the name and type via the controllable interface in control. | |
| const std::string & | name () const |
| const std::string & | type () const |
Private Attributes | |
| T | _value |
| The underlying value. | |
| const std::string | _name |
| The name that the value is for. | |
| const std::string | _type |
| The string representation of the type. | |
Class containing a value to be controlled.
Is responsible for building the value from JSON input, broadcasting the value over all ranks, and setting the value on all ranks.
These objects are registered in Moose::WebServerControlTypeRegistration.
Definition at line 57 of file WebServerControl.h.
| using WebServerControl::ControlledValue< T >::value_type = T |
The underlying type of the value.
Definition at line 70 of file WebServerControl.h.
|
inline |
Definition at line 60 of file WebServerControl.h.
|
inline |
Definition at line 64 of file WebServerControl.h.
|
inlineinherited |
Definition at line 59 of file WebServerControlTypeRegistry.h.
Referenced by WebServerControl::ControlledValue< T >::setControllableValue().
|
inlinefinaloverridevirtual |
Sets the controllable value given the name and type via the controllable interface in control.
Will broadcast the value and set it in the derived, type-aware class.
Implements Moose::WebServerControlTypeRegistry::ControlledValueBase.
Definition at line 72 of file WebServerControl.h.
|
inlineinherited |
Definition at line 63 of file WebServerControlTypeRegistry.h.
|
privateinherited |
The name that the value is for.
Definition at line 75 of file WebServerControlTypeRegistry.h.
Referenced by Moose::WebServerControlTypeRegistry::ControlledValueBase::name().
|
privateinherited |
The string representation of the type.
Definition at line 77 of file WebServerControlTypeRegistry.h.
Referenced by Moose::WebServerControlTypeRegistry::ControlledValueBase::type().
|
private |
The underlying value.
Definition at line 80 of file WebServerControl.h.
Referenced by WebServerControl::ControlledValue< T >::setControllableValue().