clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | List of all members
ProgramOptions::DefaultFormat Struct Reference

Default formatting for options. More...

#include <program_options.h>

Collaboration diagram for ProgramOptions::DefaultFormat:
Collaboration graph

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. More...
 
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. More...
 
std::size_t format (std::vector< char > &buffer, const char *desc, const Value &, std::size_t maxW)
 Writes description to buffer. More...
 

Detailed Description

Default formatting for options.

Member Function Documentation

std::size_t ProgramOptions::DefaultFormat::format ( std::vector< char > &  ,
const OptionContext  
)
inline
std::size_t ProgramOptions::DefaultFormat::format ( std::vector< char > &  buffer,
const OptionGroup g 
)

Writes g.caption() to buffer.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:


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