PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CRPCTable Class Reference

PRCY RPC command dispatcher. More...

#include <server.h>

Public Member Functions

 CRPCTable ()
 
const CRPCCommandoperator[] (const std::string &name) const
 
std::string help (std::string name) const
 Note: This interface may still be subject to change. More...
 
UniValue execute (const std::string &method, const UniValue &params) const
 Execute a method. More...
 
std::vector< std::string > listCommands () const
 Returns a list of registered commands. More...
 

Private Attributes

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

Detailed Description

PRCY RPC command dispatcher.

Definition at line 132 of file server.h.

Constructor & Destructor Documentation

◆ CRPCTable()

CRPCTable::CRPCTable ( )

Definition at line 451 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 569 of file server.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ help()

std::string CRPCTable::help ( std::string  name) const

Note: This interface may still be subject to change.

Definition at line 178 of file server.cpp.

Here is the caller graph for this function:

◆ listCommands()

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

Returns a list of registered commands.

Returns
List of registered commands.

Definition at line 593 of file server.cpp.

Here is the caller graph for this function:

◆ operator[]()

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

Definition at line 461 of file server.cpp.

Member Data Documentation

◆ mapCommands

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

Definition at line 135 of file server.h.


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