| 563 | } |
| 564 | |
| 565 | std::string RPCResults::ToDescriptionString() const |
| 566 | { |
| 567 | std::string result; |
| 568 | for (const auto& r : m_results) { |
| 569 | if (r.m_type == RPCResult::Type::ANY) continue; // for testing only |
| 570 | if (r.m_cond.empty()) { |
| 571 | result += "\nResult:\n"; |
| 572 | } else { |
| 573 | result += "\nResult (" + r.m_cond + "):\n"; |
| 574 | } |
| 575 | Sections sections; |
| 576 | r.ToSections(sections); |
| 577 | result += sections.ToString(); |
| 578 | } |
| 579 | return result; |
| 580 | } |
| 581 | |
| 582 | std::string RPCExamples::ToDescriptionString() const |
| 583 | { |