Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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 formatted string of the object.

Returns
the object formated.

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

◆ 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_base, and seastar::json::json_void.


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