Derived registry item. More...
#include <WebServerControlTypeRegistry.h>
Public Member Functions | |
| RegisteredType (const std::string &type, std::function< ValueType(const nlohmann::json &)> &&parse_function) | |
| virtual std::unique_ptr< ControlledValueBase > | build (const std::string &name) const override final | 
Builds a value with the given type, name name, and a default value.  More... | |
| virtual std::unique_ptr< ControlledValueBase > | build (const std::string &name, const nlohmann::json &json_value) const override final | 
Builds a value with the given type, name name, and JSON value json_value.  More... | |
| const std::string & | type () const | 
Private Attributes | |
| const std::function< ValueType(const nlohmann::json &)> | _parse_function | 
| Function that converts from json -> the value for the ValueType.  More... | |
Derived registry item.
Stores how to build the value and how to parse the value from JSON.
| ControlledValue | The derived ControlledValueBase class that contains the implementation for setting the controllable value | 
| ValueType | The underlying type of the value to be controlled | 
Definition at line 128 of file WebServerControlTypeRegistry.h.
      
  | 
  inline | 
Definition at line 130 of file WebServerControlTypeRegistry.h.
      
  | 
  inlinefinaloverridevirtual | 
Builds a value with the given type, name name, and a default value. 
This will be called by the WebServerControl on ranks that are not rank 0. It will be used during the sync step, where the value is broadcasted to the rest of the ranks and then set locally.
Implements Moose::WebServerControlTypeRegistry::RegisteredTypeBase.
Definition at line 137 of file WebServerControlTypeRegistry.h.
      
  | 
  inlinefinaloverridevirtual | 
Builds a value with the given type, name name, and JSON value json_value. 
This will be called on receipt of a controllable value on rank 0 in the WebServerControl. It will at that point parse the value from JSON and store it. Later on during sync, it will be used to broadcast the value and then locally set it.
Implements Moose::WebServerControlTypeRegistry::RegisteredTypeBase.
Definition at line 142 of file WebServerControlTypeRegistry.h.
      
  | 
  inlineinherited | 
Definition at line 93 of file WebServerControlTypeRegistry.h.
Referenced by Moose::WebServerControlTypeRegistry::RegisteredType< ControlledValue, ValueType >::build().
      
  | 
  private | 
Function that converts from json -> the value for the ValueType.
Definition at line 149 of file WebServerControlTypeRegistry.h.
Referenced by Moose::WebServerControlTypeRegistry::RegisteredType< ControlledValue, ValueType >::build().
 1.8.14