|
xrpld
|

Public Member Functions | |
| RPCParser (unsigned apiVersion, beast::Journal j) | |
| json::Value | parseCommand (std::string_view strMethod, json::Value const &jvParams, bool allowAnyCommand) |
Static Public Member Functions | |
| static std::span< std::string_view const > | methodNames () |
| Names of every method the command line accepts. | |
| static constexpr bool | commandsValid () |
| Whether the command table is well formed. | |
Private Types | |
| using | ParseFuncPtr = json::Value (RPCParser::*)(json::Value const& jvParams) |
Static Private Member Functions | |
| static bool | jvParseLedger (json::Value &jvRequest, std::string const &strLedger) |
| static json::Value | jvParseCurrencyIssuer (std::string const &strCurrencyIssuer) |
| static bool | validPublicKey (std::string const &strPk, TokenType type=TokenType::AccountPublic) |
Private Attributes | |
| unsigned const | apiVersion_ |
| beast::Journal const | j_ |
Static Private Attributes | |
| static constexpr auto | kCommandArray |
| static constexpr auto | kSortedCommands |
| static constexpr auto | kCommandNames |
Definition at line 169 of file RPCCall.cpp.
|
private |
Definition at line 248 of file RPCCall.cpp.
|
explicit |
Definition at line 1742 of file RPCCall.cpp.
|
staticprivate |
Definition at line 178 of file RPCCall.cpp.
|
staticprivate |
Definition at line 199 of file RPCCall.cpp.
|
staticprivate |
Definition at line 232 of file RPCCall.cpp.
|
private |
Definition at line 252 of file RPCCall.cpp.
|
private |
Definition at line 264 of file RPCCall.cpp.
|
private |
Definition at line 281 of file RPCCall.cpp.
|
private |
Definition at line 302 of file RPCCall.cpp.
|
private |
Definition at line 317 of file RPCCall.cpp.
|
private |
Definition at line 393 of file RPCCall.cpp.
|
private |
Definition at line 460 of file RPCCall.cpp.
|
private |
Definition at line 483 of file RPCCall.cpp.
|
private |
Definition at line 512 of file RPCCall.cpp.
|
private |
Definition at line 535 of file RPCCall.cpp.
|
private |
Definition at line 543 of file RPCCall.cpp.
|
private |
Definition at line 577 of file RPCCall.cpp.
|
private |
Definition at line 591 of file RPCCall.cpp.
|
private |
Definition at line 619 of file RPCCall.cpp.
|
private |
Definition at line 641 of file RPCCall.cpp.
|
private |
Definition at line 667 of file RPCCall.cpp.
|
private |
Definition at line 719 of file RPCCall.cpp.
|
private |
Definition at line 749 of file RPCCall.cpp.
|
private |
Definition at line 770 of file RPCCall.cpp.
|
private |
Definition at line 788 of file RPCCall.cpp.
|
private |
Definition at line 809 of file RPCCall.cpp.
|
private |
Definition at line 815 of file RPCCall.cpp.
|
private |
Definition at line 822 of file RPCCall.cpp.
|
private |
Definition at line 829 of file RPCCall.cpp.
|
private |
Definition at line 837 of file RPCCall.cpp.
|
private |
Definition at line 881 of file RPCCall.cpp.
|
private |
Definition at line 910 of file RPCCall.cpp.
|
private |
Definition at line 952 of file RPCCall.cpp.
|
private |
Definition at line 973 of file RPCCall.cpp.
|
private |
Definition at line 992 of file RPCCall.cpp.
|
private |
Definition at line 1006 of file RPCCall.cpp.
|
private |
Definition at line 1015 of file RPCCall.cpp.
|
private |
Definition at line 1042 of file RPCCall.cpp.
|
private |
Definition at line 1074 of file RPCCall.cpp.
|
private |
Definition at line 1124 of file RPCCall.cpp.
|
private |
Definition at line 1144 of file RPCCall.cpp.
|
private |
Definition at line 1170 of file RPCCall.cpp.
|
private |
Definition at line 1203 of file RPCCall.cpp.
|
private |
Definition at line 1220 of file RPCCall.cpp.
|
private |
Definition at line 1235 of file RPCCall.cpp.
|
private |
Definition at line 1251 of file RPCCall.cpp.
|
private |
Definition at line 1294 of file RPCCall.cpp.
|
private |
Definition at line 1309 of file RPCCall.cpp.
|
static |
Names of every method the command line accepts.
Definition at line 1706 of file RPCCall.cpp.
|
staticconstexpr |
Whether the command table is well formed.
A name must select exactly one command, and must name a method the server can dispatch, or the command line would accept a command it cannot answer. RPCCall_test checks the second property, because it can see the handler table. This checks the first, and the parameter range.
The parser is not checked: Parse has no default constructor, so an entry that omits it does not compile.
This is a function the static_assert below the class calls, rather than the assert itself, because the table names members of RPCParser, and that is only a constant expression once RPCParser is complete.
Definition at line 1727 of file RPCCall.cpp.
| json::Value xrpl::RPCParser::parseCommand | ( | std::string_view | strMethod, |
| json::Value const & | jvParams, | ||
| bool | allowAnyCommand ) |
Definition at line 1751 of file RPCCall.cpp.
|
private |
Definition at line 172 of file RPCCall.cpp.
|
private |
Definition at line 173 of file RPCCall.cpp.
|
staticconstexprprivate |
Definition at line 1322 of file RPCCall.cpp.
|
staticconstexprprivate |
Definition at line 1682 of file RPCCall.cpp.
|
staticconstexprprivate |
Definition at line 1695 of file RPCCall.cpp.