Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::Formatter Class Reference

#include <cli11_formatter.hpp>

Inheritance diagram for bb::Formatter:

Public Member Functions

 Formatter ()
 
std::string make_option_opts (const CLI::Option *opt) const override
 
std::string make_option_desc (const CLI::Option *opt) const override
 
std::string make_subcommand (const CLI::App *sub) const override
 
std::string make_help (const CLI::App *app, std::string name, CLI::AppFormatMode mode) const override
 

Private Member Functions

CLI::Validator * get_validator (CLI::Option *opt, const std::string &name) const
 
std::string replace (std::string &in, const std::string &pat, const std::string &rep) const
 

Static Private Member Functions

static void wrap_text (std::ostream &out, const std::string &text, size_t width)
 

Detailed Description

Definition at line 7 of file cli11_formatter.hpp.

Constructor & Destructor Documentation

◆ Formatter()

bb::Formatter::Formatter ( )
inline

Definition at line 9 of file cli11_formatter.hpp.

Member Function Documentation

◆ get_validator()

CLI::Validator * bb::Formatter::get_validator ( CLI::Option *  opt,
const std::string &  name 
) const
inlineprivate

Definition at line 97 of file cli11_formatter.hpp.

◆ make_help()

std::string bb::Formatter::make_help ( const CLI::App *  app,
std::string  name,
CLI::AppFormatMode  mode 
) const
inlineoverride

Definition at line 68 of file cli11_formatter.hpp.

◆ make_option_desc()

std::string bb::Formatter::make_option_desc ( const CLI::Option *  opt) const
inlineoverride

Definition at line 20 of file cli11_formatter.hpp.

◆ make_option_opts()

std::string bb::Formatter::make_option_opts ( const CLI::Option *  opt) const
inlineoverride

Definition at line 11 of file cli11_formatter.hpp.

◆ make_subcommand()

std::string bb::Formatter::make_subcommand ( const CLI::App *  sub) const
inlineoverride

Definition at line 39 of file cli11_formatter.hpp.

◆ replace()

std::string bb::Formatter::replace ( std::string &  in,
const std::string &  pat,
const std::string &  rep 
) const
inlineprivate

Definition at line 108 of file cli11_formatter.hpp.

◆ wrap_text()

static void bb::Formatter::wrap_text ( std::ostream &  out,
const std::string &  text,
size_t  width 
)
inlinestaticprivate

Definition at line 78 of file cli11_formatter.hpp.


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