Kagome
Polkadot Runtime Engine in C++17
kagome::api::JsonWriter Class Referencefinal

#include <custom_json_writer.hpp>

Inheritance diagram for kagome::api::JsonWriter:
Collaboration diagram for kagome::api::JsonWriter:

Public Member Functions

 JsonWriter ()
 
std::shared_ptr< jsonrpc::FormattedData > GetData () override
 
void StartDocument () override
 
void EndDocument () override
 
void StartRequest (const std::string &methodName, const jsonrpc::Value &id) override
 
void EndRequest () override
 
void StartParameter () override
 
void EndParameter () override
 
void StartResponse (const jsonrpc::Value &id) override
 
void EndResponse () override
 
void StartFaultResponse (const jsonrpc::Value &id) override
 
void EndFaultResponse () override
 
void WriteFault (int32_t code, const std::string &string) override
 
void StartArray () override
 
void EndArray () override
 
void StartStruct () override
 
void EndStruct () override
 
void StartStructElement (const std::string &name) override
 
void EndStructElement () override
 
void WriteBinary (const char *data, size_t size) override
 
void WriteNull () override
 
void Write (bool value) override
 
void Write (double value) override
 
void Write (int32_t value) override
 
void Write (int64_t value) override
 
void Write (const std::string &value) override
 
void Write (const tm &value) override
 

Private Member Functions

void WriteId (const jsonrpc::Value &id)
 

Private Attributes

std::shared_ptr< jsonrpc::JsonFormattedData > myRequestData
 

Detailed Description

Custom JsonWriter to format events for pub-sub rpc.

Definition at line 28 of file custom_json_writer.hpp.

Constructor & Destructor Documentation

kagome::api::JsonWriter::JsonWriter ( )
inline

Definition at line 30 of file custom_json_writer.hpp.

Member Function Documentation

void kagome::api::JsonWriter::EndArray ( )
inlineoverride

Definition at line 132 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndDocument ( )
inlineoverride

Definition at line 41 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndFaultResponse ( )
inlineoverride

Definition at line 108 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndParameter ( )
inlineoverride

Definition at line 73 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndRequest ( )
inlineoverride

Definition at line 65 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndResponse ( )
inlineoverride

Definition at line 92 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndStruct ( )
inlineoverride

Definition at line 140 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::EndStructElement ( )
inlineoverride

Definition at line 148 of file custom_json_writer.hpp.

std::shared_ptr<jsonrpc::FormattedData> kagome::api::JsonWriter::GetData ( )
inlineoverride

Definition at line 33 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartArray ( )
inlineoverride

Definition at line 128 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartDocument ( )
inlineoverride

Definition at line 37 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartFaultResponse ( const jsonrpc::Value &  id)
inlineoverride

Definition at line 96 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartParameter ( )
inlineoverride

Definition at line 69 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartRequest ( const std::string &  methodName,
const jsonrpc::Value &  id 
)
inlineoverride

Definition at line 45 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartResponse ( const jsonrpc::Value &  id)
inlineoverride

Definition at line 77 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartStruct ( )
inlineoverride

Definition at line 136 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::StartStructElement ( const std::string &  name)
inlineoverride

Definition at line 144 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::Write ( bool  value)
inlineoverride

Definition at line 160 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::Write ( double  value)
inlineoverride

Definition at line 164 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::Write ( int32_t  value)
inlineoverride

Definition at line 168 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::Write ( int64_t  value)
inlineoverride

Definition at line 172 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::Write ( const std::string &  value)
inlineoverride

Definition at line 176 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::Write ( const tm &  value)
inlineoverride

Definition at line 180 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::WriteBinary ( const char *  data,
size_t  size 
)
inlineoverride

Definition at line 152 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::WriteFault ( int32_t  code,
const std::string &  string 
)
inlineoverride

Definition at line 112 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::WriteId ( const jsonrpc::Value &  id)
inlineprivate

Definition at line 185 of file custom_json_writer.hpp.

void kagome::api::JsonWriter::WriteNull ( )
inlineoverride

Definition at line 156 of file custom_json_writer.hpp.

Member Data Documentation

std::shared_ptr<jsonrpc::JsonFormattedData> kagome::api::JsonWriter::myRequestData
private

Definition at line 202 of file custom_json_writer.hpp.


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