clingo
|
Represents one program option. More...
#include <program_options.h>
Public Member Functions | |
Option (const std::string &longName, char shortName, const char *description, Value *value) | |
~Option () | |
const std::string & | name () const |
char | alias () const |
Value * | value () const |
const char * | description () const |
const char * | argName () const |
bool | assignDefault () const |
std::size_t | maxColumn () const |
DescriptionLevel | descLevel () const |
Public Member Functions inherited from ProgramOptions::detail::RefCountable | |
RefCountable () | |
int | addRef () |
int | release () |
int | refCount () const |
Represents one program option.
An Option consists of a description (long name, short name, description), a (typed) value, and an optional default value.
ProgramOptions::Option::Option | ( | const std::string & | longName, |
char | shortName, | ||
const char * | description, | ||
Value * | value | ||
) |
longName | name (and unique key) of the option |
shortName | possible alias name |
description | description of the option, used for printing help |
value | value object to be associated with this option |
ProgramOptions::Option::~Option | ( | ) |
|
inline |
|
inline |
bool ProgramOptions::Option::assignDefault | ( | ) | const |
|
inline |
|
inline |
std::size_t ProgramOptions::Option::maxColumn | ( | ) | const |
|
inline |
|
inline |