| 611 | } |
| 612 | |
| 613 | std::string RPCResults::ToDescriptionString() const |
| 614 | { |
| 615 | std::string result; |
| 616 | for (const auto& r : m_results) { |
| 617 | if (r.m_type == RPCResult::Type::ANY) continue; // for testing only |
| 618 | if (r.m_cond.empty()) { |
| 619 | result += "\nResult:\n"; |
| 620 | } else { |
| 621 | result += "\nResult (" + r.m_cond + "):\n"; |
| 622 | } |
| 623 | Sections sections; |
| 624 | r.ToSections(sections); |
| 625 | result += sections.ToString(); |
| 626 | } |
| 627 | return result; |
| 628 | } |
| 629 | |
| 630 | std::string RPCExamples::ToDescriptionString() const |
| 631 | { |