Public Member Functions
ProgramOptions::DefaultFormat Struct Reference

Default formatting for options. More...

#include <program_options.h>

List of all members.

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.

Detailed Description

Default formatting for options.

Definition at line 371 of file program_options.h.


Member Function Documentation

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.


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


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41