Seastar
High performance C++ framework for concurrent servers
|
json_list is based on std vector implementation.
When values are added with push it is set the "set" flag to true hence will be included in the parsed object
#include <seastar/json/json_elements.hh>
Public Member Functions | |
void | push (const T &element) |
virtual std::string | to_string () override |
template<class C > | |
json_list & | operator= (const C &list) |
virtual future | write (output_stream< char > &s) const override |
virtual bool | is_verify () noexcept |
Public Attributes | |
std::vector< T > | _elements |
std::string | _name |
bool | _mandatory |
bool | _set |
|
inlinevirtualnoexceptinherited |
Check if it's a mandatory parameter and if it's set.
|
inline |
Assignment can be done from any object that support const range iteration and that it's elements can be assigned to the list elements
|
inline |
Add an element to the list.
element | a new element that will be added to the list |
|
inlineoverridevirtual |
returns the internal value in a json format Each inherit class must implement this method
Implements seastar::json::json_base_element.
|
inlineoverridevirtual |
Implements seastar::json::json_base_element.