#include <util.h>
|
| enum | Type {
Type::OBJ,
Type::ARR,
Type::STR,
Type::NUM,
Type::BOOL,
Type::NONE,
Type::STR_AMOUNT,
Type::STR_HEX,
Type::OBJ_DYN,
Type::ARR_FIXED,
Type::NUM_TIME,
Type::ELISION
} |
| |
|
| | RPCResult (const std::string cond, const Type type, const std::string m_key_name, const bool optional, const std::string description, const std::vector< RPCResult > inner={}) |
| |
| | RPCResult (const std::string cond, const Type type, const std::string m_key_name, const std::string description, const std::vector< RPCResult > inner={}) |
| |
| | RPCResult (const Type type, const std::string m_key_name, const bool optional, const std::string description, const std::vector< RPCResult > inner={}) |
| |
| | RPCResult (const Type type, const std::string m_key_name, const std::string description, const std::vector< RPCResult > inner={}) |
| |
| void | ToSections (Sections §ions, OuterType outer_type=OuterType::NONE, const int current_indent=0) const |
| | Append the sections of the result. More...
|
| |
| std::string | ToStringObj () const |
| | Return the type string of the result when it is in an object (dict). More...
|
| |
| std::string | ToDescriptionString () const |
| | Return the description string, including the result type. More...
|
| |
Definition at line 221 of file util.h.
| Enumerator |
|---|
| OBJ |
|
| ARR |
|
| STR |
|
| NUM |
|
| BOOL |
|
| NONE |
|
| STR_AMOUNT |
Special string to represent a floating point amount.
|
| STR_HEX |
Special string with only hex chars.
|
| OBJ_DYN |
Special dictionary with keys that are not literals.
|
| ARR_FIXED |
Special array that has a fixed number of entries.
|
| NUM_TIME |
Special numeric to denote unix epoch time.
|
| ELISION |
Special type to denote elision (...)
|
Definition at line 222 of file util.h.
| RPCResult::RPCResult |
( |
const std::string |
cond, |
|
|
const Type |
type, |
|
|
const std::string |
m_key_name, |
|
|
const bool |
optional, |
|
|
const std::string |
description, |
|
|
const std::vector< RPCResult > |
inner = {} |
|
) |
| |
|
inline |
| RPCResult::RPCResult |
( |
const std::string |
cond, |
|
|
const Type |
type, |
|
|
const std::string |
m_key_name, |
|
|
const std::string |
description, |
|
|
const std::vector< RPCResult > |
inner = {} |
|
) |
| |
|
inline |
| RPCResult::RPCResult |
( |
const Type |
type, |
|
|
const std::string |
m_key_name, |
|
|
const bool |
optional, |
|
|
const std::string |
description, |
|
|
const std::vector< RPCResult > |
inner = {} |
|
) |
| |
|
inline |
| RPCResult::RPCResult |
( |
const Type |
type, |
|
|
const std::string |
m_key_name, |
|
|
const std::string |
description, |
|
|
const std::vector< RPCResult > |
inner = {} |
|
) |
| |
|
inline |
| std::string RPCResult::ToDescriptionString |
( |
| ) |
const |
Return the description string, including the result type.
Append the sections of the result.
Definition at line 635 of file util.cpp.
| std::string RPCResult::ToStringObj |
( |
| ) |
const |
Return the type string of the result when it is in an object (dict).
| const std::string RPCResult::m_cond |
| const std::string RPCResult::m_description |
| const std::vector<RPCResult> RPCResult::m_inner |
Only used for arrays or dicts.
Definition at line 239 of file util.h.
| const std::string RPCResult::m_key_name |
Only used for dicts.
Definition at line 238 of file util.h.
| const bool RPCResult::m_optional |
| const Type RPCResult::m_type |
The documentation for this struct was generated from the following files: