Seastar
High performance C++ framework for concurrent servers
|
Basic json element instantiate the json_element template. it adds a value to the base definition and the to_string implementation using the formatter
#include <seastar/json/json_elements.hh>
Public Member Functions | |
json_element & | operator= (const T &new_value) |
template<class C > | |
json_element & | operator= (const C &new_value) |
const T & | operator() () const noexcept |
virtual std::string | to_string () override |
virtual future | write (output_stream< char > &s) const override |
virtual bool | is_verify () noexcept |
Public Attributes | |
std::string | _name |
bool | _mandatory |
bool | _set |
|
inlinevirtualnoexceptinherited |
Check if it's a mandatory parameter and if it's set.
|
inlinenoexcept |
The brackets operator
|
inline |
the assignment operator also set the set value to true.
new_value | the new value |
|
inline |
the assignment operator also set the set value to true.
new_value | the new value |
|
inlineoverridevirtual |
The to_string return the value formated as a json value
Implements seastar::json::json_base_element.
|
inlineoverridevirtual |
Implements seastar::json::json_base_element.