Default formatting for options. More...
#include <program_options.h>
Public Member Functions | |
std::size_t | format (std::vector< char > &, const OptionContext &) |
std::size_t | format (std::vector< char > &buffer, const OptionGroup &g) |
Writes g.caption() to buffer. | |
std::size_t | format (std::vector< char > &buffer, const Option &o, std::size_t maxW) |
Writes long name, short name, and argument name to buffer. | |
std::size_t | format (std::vector< char > &buffer, const char *desc, const Value &, std::size_t maxW) |
Writes description to buffer. |
Default formatting for options.
Definition at line 371 of file program_options.h.
std::size_t ProgramOptions::DefaultFormat::format | ( | std::vector< char > & | , |
const OptionContext & | |||
) | [inline] |
Definition at line 372 of file program_options.h.
std::size_t ProgramOptions::DefaultFormat::format | ( | std::vector< char > & | buffer, |
const OptionGroup & | g | ||
) |
Writes g.caption() to buffer.
Definition at line 96 of file program_options.cpp.
std::size_t ProgramOptions::DefaultFormat::format | ( | std::vector< char > & | buffer, |
const Option & | o, | ||
std::size_t | maxW | ||
) |
Writes long name, short name, and argument name to buffer.
Definition at line 44 of file program_options.cpp.
std::size_t ProgramOptions::DefaultFormat::format | ( | std::vector< char > & | buffer, |
const char * | desc, | ||
const Value & | val, | ||
std::size_t | maxW | ||
) |
Writes description to buffer.
Occurrences of D, I and A in desc are replaced with the value's default value, implicit value, and name, respectively.
Definition at line 70 of file program_options.cpp.