Bitcoin ABC 0.30.7
P2P Digital Currency
Public Member Functions | List of all members
RPCCommandWithArgsContext Class Referenceabstract

By default, use RPCCommandWithArgsContext as the parent class for new RPC command classes that only depend on RPC arguments. More...

#include <command.h>

Inheritance diagram for RPCCommandWithArgsContext:
[legend]
Collaboration diagram for RPCCommandWithArgsContext:
[legend]

Public Member Functions

 RPCCommandWithArgsContext (const std::string &nameIn)
 
virtual UniValue Execute (const UniValue &args) const =0
 
UniValue Execute (const JSONRPCRequest &request) const final
 It is recommended to override Execute(JSONRPCRequest) only if the entire request context is required. More...
 
- Public Member Functions inherited from RPCCommand
 RPCCommand (const std::string &nameIn)
 
virtual ~RPCCommand ()
 
 RPCCommand (const RPCCommand &)=delete
 
RPCCommandoperator= (const RPCCommand &)=delete
 
virtual UniValue Execute (const JSONRPCRequest &request) const =0
 It is recommended to override Execute(JSONRPCRequest) only if the entire request context is required. More...
 
const std::string & GetName () const
 

Detailed Description

By default, use RPCCommandWithArgsContext as the parent class for new RPC command classes that only depend on RPC arguments.

Definition at line 54 of file command.h.

Constructor & Destructor Documentation

◆ RPCCommandWithArgsContext()

RPCCommandWithArgsContext::RPCCommandWithArgsContext ( const std::string &  nameIn)
inline

Definition at line 56 of file command.h.

Member Function Documentation

◆ Execute() [1/2]

UniValue RPCCommandWithArgsContext::Execute ( const JSONRPCRequest request) const
finalvirtual

It is recommended to override Execute(JSONRPCRequest) only if the entire request context is required.

Otherwise, use RPCCommandWithArgsContext instead.

Implements RPCCommand.

Definition at line 9 of file command.cpp.

Here is the call graph for this function:

◆ Execute() [2/2]

virtual UniValue RPCCommandWithArgsContext::Execute ( const UniValue args) const
pure virtual
Here is the caller graph for this function:

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