HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pxr_CLI::CLI::FormatterLambda Class Referencefinal

This is a specialty override for lambda functions. More...

#include <CLI11.h>

+ Inheritance diagram for pxr_CLI::CLI::FormatterLambda:

Public Member Functions

 FormatterLambda (funct_t funct)
 Create a FormatterLambda with a lambda function. More...
 
 ~FormatterLambda () noexceptoverride
 Adding a destructor (mostly to make GCC 4.7 happy) More...
 
std::string make_help (const App *app, std::string name, AppFormatMode mode) const override
 This will simply call the lambda function. More...
 
- Public Member Functions inherited from pxr_CLI::CLI::FormatterBase
 FormatterBase ()=default
 Adding a destructor in this form to work around bug in GCC 4.7. More...
 
 FormatterBase (const FormatterBase &)=default
 Adding a destructor in this form to work around bug in GCC 4.7. More...
 
 FormatterBase (FormatterBase &&)=default
 Adding a destructor in this form to work around bug in GCC 4.7. More...
 
FormatterBaseoperator= (const FormatterBase &)=default
 Adding a destructor in this form to work around bug in GCC 4.7. More...
 
FormatterBaseoperator= (FormatterBase &&)=default
 Adding a destructor in this form to work around bug in GCC 4.7. More...
 
virtual ~FormatterBase () noexcept
 Adding a destructor in this form to work around bug in GCC 4.7. More...
 
void label (std::string key, std::string val)
 Set the "REQUIRED" label. More...
 
void column_width (std::size_t val)
 Set the column width. More...
 
CLI11_NODISCARD std::string get_label (std::string key) const
 Get the current value of a name (REQUIRED, etc.) More...
 
CLI11_NODISCARD std::size_t get_column_width () const
 Get the current column width. More...
 

Additional Inherited Members

- Protected Attributes inherited from pxr_CLI::CLI::FormatterBase
std::size_t column_width_ {30}
 The width of the first column. More...
 
std::map< std::string,
std::string
labels_ {}
 The required help printout labels (user changeable) Values are Needs, Excludes, etc. More...
 

Detailed Description

This is a specialty override for lambda functions.

Definition at line 4054 of file CLI11.h.

Constructor & Destructor Documentation

pxr_CLI::CLI::FormatterLambda::FormatterLambda ( funct_t  funct)
inlineexplicit

Create a FormatterLambda with a lambda function.

Definition at line 4062 of file CLI11.h.

pxr_CLI::CLI::FormatterLambda::~FormatterLambda ( )
inlineoverridenoexcept

Adding a destructor (mostly to make GCC 4.7 happy)

Definition at line 4065 of file CLI11.h.

Member Function Documentation

std::string pxr_CLI::CLI::FormatterLambda::make_help ( const App app,
std::string  name,
AppFormatMode  mode 
) const
inlineoverridevirtual

This will simply call the lambda function.

Implements pxr_CLI::CLI::FormatterBase.

Definition at line 4068 of file CLI11.h.


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