Electroneum
message.h File Reference
#include "rapidjson/document.h"
#include "rpc/message_data_structs.h"
#include <string>
Include dependency graph for message.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cryptonote::rpc::Message
 
class  cryptonote::rpc::FullMessage
 

Namespaces

 cryptonote
 Holds cryptonote related classes and helpers.
 
 cryptonote::rpc
 

Macros

#define REQ_RESP_TYPES_MACRO(runtime_str, type, reqjson, resp_message_ptr, handler)
 

Functions

std::string cryptonote::rpc::BAD_REQUEST (const std::string &request)
 
std::string cryptonote::rpc::BAD_REQUEST (const std::string &request, rapidjson::Value &id)
 
std::string cryptonote::rpc::BAD_JSON (const std::string &error_details)
 

Macro Definition Documentation

◆ REQ_RESP_TYPES_MACRO

#define REQ_RESP_TYPES_MACRO (   runtime_str,
  type,
  reqjson,
  resp_message_ptr,
  handler 
)
Value:
\
if (runtime_str == type::name) \
{ \
type::Request reqvar; \
type::Response *respvar = new type::Response(); \
\
reqvar.fromJson(reqjson); \
\
handler(reqvar, *respvar); \
\
resp_message_ptr = respvar; \
}
SendRawTx::Response Response
const char * name

Definition at line 39 of file message.h.