--- title: "dynamorio::droption::droption_t< T > Class Template Reference" layout: default permalink: /classdynamorio_1_1droption_1_1droption__t.html ---
DynamoRIO
|
#include <droption.h>
Public Member Functions | |
droption_t (unsigned int scope, std::string name, T defval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::string name, unsigned int flags, T defval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::string name, unsigned int flags, std::string valsep, T defval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::string name, T defval, T minval, T maxval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::vector< std::string > names, T defval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::vector< std::string > names, unsigned int flags, T defval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::vector< std::string > names, unsigned int flags, std::string valsep, T defval, std::string desc_short, std::string desc_long) | |
droption_t (unsigned int scope, std::vector< std::string > names, T defval, T minval, T maxval, std::string desc_short, std::string desc_long) | |
T | get_value () const |
void | clear_value () override |
std::string | get_value_separator () const |
void | set_value (T new_value) |
![]() | |
bool | specified () |
std::string | get_name () |
Additional Inherited Members | |
![]() | |
static bool | parse_argv (unsigned int scope, int argc, const char *argv[], std::string *error_msg, int *last_index) |
static std::string | usage_short (unsigned int scope) |
static std::string | usage_long (unsigned int scope, std::string pre_name="----------\n", std::string post_name="\n", std::string pre_value="", std::string post_value="\n", std::string pre_desc="", std::string post_desc="\n") |
static void | clear_values () |
Option class for declaring new options.
|
inline |
Declares a new option of type T with the given scope, default value, and description in short and long forms.
|
inline |
Declares a new option of type T with the given scope, behavior flags, default value, and description in short and long forms.
|
inline |
Declares a new option of type T with the given scope, behavior flags, accumulated value separator (see DROPTION_FLAG_ACCUMULATE), default value, and description in short and long forms.
|
inline |
Declares a new option of type T with the given scope, default value, minimum and maximum values, and description in short and long forms.
|
inline |
Declares a new option of type T with the given scope, list of alternative names, default value, and description in short and long forms.
|
inline |
Declares a new option of type T with the given scope, list of alternative names, behavior flags, default value, and description in short and long forms.
|
inline |
Declares a new option of type T with the given scope, list of alternative names, behavior flags, accumulated value separator (see DROPTION_FLAG_ACCUMULATE), default value, and description in short and long forms. The first listed name is considered the primary name; the others are aliases.
|
inline |
Declares a new option of type T with the given scope, list of alternative names, default value, minimum and maximum values, and description in short and long forms.
|
inlineoverridevirtual |
Resets the value of this option to the default value.
Implements dynamorio::droption::droption_parser_t.
|
inline |
Returns the value of this option.
|
inline |
Returns the separator of the option value (see DROPTION_FLAG_ACCUMULATE).
|
inline |
Sets the value of this option, overriding the command line.