Class with helper methods to options in a hash.
More...
#include <OptionHelper.qc.dox.h>
|
|
static soft< bool > | getBool (soft< bool > default_value, soft< bool > required, soft< hash< auto > > opts, string key) |
| | Returns a boolean value from a hash.
|
| |
|
static soft< hash< auto > > | getHash (soft< hash< auto > > default_value, soft< bool > required, soft< hash< auto > > opts, string key) |
| | Returns a hash value from a hash.
|
| |
|
static soft< int > | getInt (soft< int > default_value, soft< bool > required, soft< hash< auto > > opts, string key) |
| | Gets an integer option.
|
| |
|
static auto | getOptionType (auto default_value, soft< bool > required, string type_name, int type_code, soft< hash< auto > > opts, string key) |
| | gets an option value of the given type
|
| |
|
static soft< string > | getString (soft< string > default_value, soft< bool > required, soft< hash< auto > > opts, string key) |
| | Returns a string value from a hash.
|
| |
Class with helper methods to options in a hash.