hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::detail::PrettyStringBuilder Class Reference

#include "string_builder.hpp"

Collaboration diagram for shared_model::detail::PrettyStringBuilder:
Collaboration graph

Public Member Functions

PrettyStringBuilderinit (const std::string &name)
 
PrettyStringBuilderinsertLevel ()
 
PrettyStringBuilderremoveLevel ()
 
PrettyStringBuilderappend (const std::string &o)
 -------— Single element undecorated append. -------— /// More...
 
template<typename T >
PrettyStringBuilderappend (const T &o)
 
template<typename Value >
PrettyStringBuilderappendNamed (const std::string &name, const Value &value)
 ----—— Augmented appending functions. ----—— /// More...
 
std::string finalize ()
 

Detailed Description

A simple string builder class for building pretty looking strings

Member Function Documentation

◆ append() [1/2]

PrettyStringBuilder & shared_model::detail::PrettyStringBuilder::append ( const std::string &  o)

-------— Single element undecorated append. -------— ///

Here is the caller graph for this function:

◆ append() [2/2]

template<typename T >
PrettyStringBuilder& shared_model::detail::PrettyStringBuilder::append ( const T &  o)
inline
Here is the call graph for this function:

◆ appendNamed()

template<typename Value >
PrettyStringBuilder& shared_model::detail::PrettyStringBuilder::appendNamed ( const std::string &  name,
const Value &  value 
)
inline

----—— Augmented appending functions. ----—— ///

Appends new field to string as a "name=value" pair

Parameters
name- field name to append
value- field value
Here is the call graph for this function:

◆ finalize()

std::string shared_model::detail::PrettyStringBuilder::finalize ( )

Finalizes appending and returns constructed string.

Returns
resulted string
Here is the call graph for this function:

◆ init()

PrettyStringBuilder & shared_model::detail::PrettyStringBuilder::init ( const std::string &  name)

Initializes new string with a provided name

Parameters
name- name to initialize
Here is the call graph for this function:

◆ insertLevel()

PrettyStringBuilder & shared_model::detail::PrettyStringBuilder::insertLevel ( )

Inserts new level marker

Here is the caller graph for this function:

◆ removeLevel()

PrettyStringBuilder & shared_model::detail::PrettyStringBuilder::removeLevel ( )

Closes new level marker

Here is the caller graph for this function:

The documentation for this class was generated from the following files: