Base registry class for a type that is used to build values. More...
Public Member Functions | |
| TypeBase (const std::string &type) | |
| virtual | ~TypeBase () |
| const std::string & | type () const |
| virtual std::unique_ptr< ValueBase > | build (const std::string &name, const miniJson::Json &json_value) const =0 |
Builds a value with the given type, name name, and JSON value json_value. More... | |
| virtual std::unique_ptr< ValueBase > | build (const std::string &name) const =0 |
Builds a value with the given type, name name, and a default value. More... | |
Private Attributes | |
| const std::string | _type |
| The string representation of the underlying type. More... | |
Base registry class for a type that is used to build values.
Definition at line 140 of file WebServerControlTypeRegistry.h.
|
inline |
Definition at line 143 of file WebServerControlTypeRegistry.h.
|
inlinevirtual |
Definition at line 144 of file WebServerControlTypeRegistry.h.
|
pure virtual |
Builds a value with the given type, name name, and JSON value json_value.
This will parse the JSON value into the underlying type and will be called on only rank 0 where server listens.
Implemented in Moose::WebServerControlTypeRegistry::Type< DerivedValueType >.
|
pure virtual |
Builds a value with the given type, name name, and a default value.
This will be called on processors that are not rank 0 for cloning.
Implemented in Moose::WebServerControlTypeRegistry::Type< DerivedValueType >.
|
inline |
Definition at line 149 of file WebServerControlTypeRegistry.h.
Referenced by Moose::WebServerControlTypeRegistry::Type< DerivedValueType >::build().
|
private |
The string representation of the underlying type.
Definition at line 167 of file WebServerControlTypeRegistry.h.
Referenced by type().
1.8.14