Seastar
High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::json::jsonable Class Referenceabstract
Inheritance diagram for seastar::json::jsonable:
seastar::json::json_base seastar::json::json_void seastar::httpd::api_doc seastar::httpd::api_docs seastar::httpd::json_exception

Public Member Functions

 jsonable (const jsonable &)=default
 
jsonableoperator= (const jsonable &)=default
 
virtual std::string to_json () const =0
 
virtual future write (output_stream< char > &s) const
 write an object to the output stream More...
 

Member Function Documentation

◆ to_json()

virtual std::string seastar::json::jsonable::to_json ( ) const
pure virtual

create a foramted string of the object.

Returns
the object formated.

Implemented in seastar::json::json_void, and seastar::json::json_base.

◆ write()

virtual future seastar::json::jsonable::write ( output_stream< char > &  s) const
inlinevirtual

write an object to the output stream

The defult implementation uses the to_json Object implementation override it.

Reimplemented in seastar::json::json_void, and seastar::json::json_base.


The documentation for this class was generated from the following file: