Qore ConnectionProvider Module Reference 2.3
Loading...
Searching...
No Matches
ConnectionProvider::OptionHelper Class Reference

Class with helper methods to options in a hash. More...

#include <OptionHelper.qc.dox.h>

Inheritance diagram for ConnectionProvider::OptionHelper:
[legend]

Static Public Member Methods

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.
 

Detailed Description

Class with helper methods to options in a hash.