Bitcoin ABC 0.30.3
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
Sections Struct Reference

Keeps track of RPCArgs by transforming them into sections for the purpose of serializing everything to a single string. More...

Public Member Functions

void PushSection (const Section &s)
 
void Push (const RPCArg &arg, const size_t current_indent=5, const OuterType outer_type=OuterType::NONE)
 Recursive helper to translate an RPCArg into sections. More...
 
std::string ToString () const
 Concatenate all sections with proper padding. More...
 

Public Attributes

std::vector< Sectionm_sections
 
size_t m_max_pad {0}
 

Detailed Description

Keeps track of RPCArgs by transforming them into sections for the purpose of serializing everything to a single string.

Definition at line 358 of file util.cpp.

Member Function Documentation

◆ Push()

void Sections::Push ( const RPCArg arg,
const size_t  current_indent = 5,
const OuterType  outer_type = OuterType::NONE 
)
inline

Recursive helper to translate an RPCArg into sections.

Definition at line 370 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PushSection()

void Sections::PushSection ( const Section s)
inline

Definition at line 362 of file util.cpp.

Here is the caller graph for this function:

◆ ToString()

std::string Sections::ToString ( ) const
inline

Concatenate all sections with proper padding.

Definition at line 445 of file util.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_max_pad

size_t Sections::m_max_pad {0}

Definition at line 360 of file util.cpp.

◆ m_sections

std::vector<Section> Sections::m_sections

Definition at line 359 of file util.cpp.


The documentation for this struct was generated from the following file: