Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CRPCTable Class Reference

Anoncoin RPC command dispatcher. More...

#include <rpcserver.h>

Public Member Functions

 CRPCTable ()
 
const CRPCCommandoperator[] (std::string name) const
 
std::string help (std::string name) const
 Note: This interface may still be subject to change. More...
 
json_spirit::Value execute (const std::string &method, const json_spirit::Array &params) const
 Execute a method. More...
 

Private Attributes

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

Detailed Description

Anoncoin RPC command dispatcher.

Definition at line 69 of file rpcserver.h.

Constructor & Destructor Documentation

CRPCTable::CRPCTable ( )

Definition at line 329 of file rpcserver.cpp.

Member Function Documentation

json_spirit::Value CRPCTable::execute ( const std::string &  method,
const json_spirit::Array &  params 
) const

Execute a method.

Parameters
methodMethod to execute
paramsArray of arguments (JSON objects)
Returns
Result of the call.
Exceptions
anexception (json_spirit::Value) when an error happens.

Definition at line 852 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Note: This interface may still be subject to change.

Definition at line 149 of file rpcserver.cpp.

Here is the caller graph for this function:

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

Definition at line 341 of file rpcserver.cpp.

Member Data Documentation

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

Definition at line 72 of file rpcserver.h.


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