Dash Core  0.12.2.1
P2P Digital Currency
CRPCTable Class Reference

#include <server.h>

Public Member Functions

 CRPCTable ()
 
const CRPCCommandoperator[] (const std::string &name) const
 
std::string help (const std::string &name) const
 
UniValue execute (const std::string &method, const UniValue &params) const
 
std::vector< std::string > listCommands () const
 

Private Attributes

std::map< std::string, const CRPCCommand * > mapCommands
 

Detailed Description

Dash RPC command dispatcher.

Definition at line 128 of file server.h.

Constructor & Destructor Documentation

◆ CRPCTable()

CRPCTable::CRPCTable ( )

Definition at line 410 of file server.cpp.

Member Function Documentation

◆ execute()

UniValue CRPCTable::execute ( const std::string &  method,
const UniValue params 
) const

Execute a method.

Parameters
methodMethod to execute
paramsUniValue Array of arguments (JSON objects)
Returns
Result of the call.
Exceptions
anexception (UniValue) when an error happens.

Definition at line 541 of file server.cpp.

Referenced by HTTPReq_JSONRPC(), JSONRPCExecOne(), and RPCExecutor::request().

◆ help()

std::string CRPCTable::help ( const std::string &  strCommand) const

Note: This interface may still be subject to change.

Definition at line 165 of file server.cpp.

Referenced by help().

◆ listCommands()

std::vector< std::string > CRPCTable::listCommands ( ) const

Returns a list of registered commands

Returns
List of registered commands.

Definition at line 570 of file server.cpp.

Referenced by RPCConsole::setClientModel().

◆ operator[]()

const CRPCCommand * CRPCTable::operator[] ( const std::string &  name) const

Definition at line 422 of file server.cpp.

Member Data Documentation

◆ mapCommands

std::map<std::string, const CRPCCommand*> CRPCTable::mapCommands
private

Definition at line 131 of file server.h.


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