MySQL 9.1.0
Source Code Documentation
config_option.h File Reference
#include <charconv>
#include <chrono>
#include <limits>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
#include "harness_export.h"

Go to the source code of this file.

Classes

class  mysql_harness::IntOption< T >
 
class  mysql_harness::StringOption
 
class  mysql_harness::BoolOption
 
class  mysql_harness::FloatingPointOption< V >
 
class  mysql_harness::DurationOption< Dur >
 

Namespaces

namespace  mysql_harness
 

Typedefs

using mysql_harness::DoubleOption = FloatingPointOption< double >
 
using mysql_harness::MilliSecondsOption = DurationOption< std::chrono::milliseconds >
 a double option with milli-second precision. More...
 

Functions

double HARNESS_EXPORT mysql_harness::option_as_double (const std::string &value, const std::string &option_desc, double min_value=0, double max_value=std::numeric_limits< double >::max())
 
template<typename T >
mysql_harness::option_as_int (const std::string_view &value, const std::string &option_desc, T min_value=std::numeric_limits< T >::min(), T max_value=std::numeric_limits< T >::max())
 Gets an integer using the given option value. More...
 
template<typename T >
mysql_harness::option_as_uint (const std::string_view &value, const std::string &option_desc, T min_value=std::numeric_limits< T >::min(), T max_value=std::numeric_limits< T >::max())
 Get a unsigned integer. More...