sapling/eden/fs/config
Adam Simpkins 7fbe72c368 add config FieldConverter implementations for all arithmetic types
Summary:
Update the `FieldConverter` code to support parsing any arithmetic type
(integers and floating point) using `folly::to<T>()`.  Also change the `bool`
conversion implementation to use the same code.

This does change the `bool` implementation to accept any string accepted by
`folly::to<bool>(string)`.  The old code only allowed `true` and `false`.  The
new code allows other strings: `yes`, `no`, `y`, `n`, `0`, `1`, `on`, `off`

This also makes the implementation more efficient by eliminating some
unnecessary string copies and avoiding throwing exceptions internally on
error.

Reviewed By: wez

Differential Revision: D15428700

fbshipit-source-id: feb73a1f53775fbf3d3acb8585fa689f79c0db81
2019-06-11 13:08:28 -07:00
..
test add config FieldConverter implementations for all arithmetic types 2019-06-11 13:08:28 -07:00
CachedParsedFileMonitor.h Replace EDEN_WIN with _WIN32 for Windows only code 2019-05-09 16:33:08 -07:00
CheckoutConfig.cpp Replace EDEN_WIN with _WIN32 for Windows only code 2019-05-09 16:33:08 -07:00
CheckoutConfig.h rename ClientConfig to CheckoutConfig 2019-05-07 17:41:36 -07:00
CMakeLists.txt move the ConfigSource enum to a thrift file 2019-06-05 11:50:37 -07:00
ConfigSetting.h move the ConfigSource enum to a thrift file 2019-06-05 11:50:37 -07:00
eden_config.thrift add a thrift call for getting config values 2019-06-11 13:08:28 -07:00
EdenConfig.cpp add a thrift call for getting config values 2019-06-11 13:08:28 -07:00
EdenConfig.h add a thrift call for getting config values 2019-06-11 13:08:28 -07:00
FieldConverter.cpp add config FieldConverter implementations for all arithmetic types 2019-06-11 13:08:28 -07:00
FieldConverter.h add config FieldConverter implementations for all arithmetic types 2019-06-11 13:08:28 -07:00
FileChangeMonitor.cpp Replace EDEN_WIN with _WIN32 for Windows only code 2019-05-09 16:33:08 -07:00
FileChangeMonitor.h Replace EDEN_WIN with _WIN32 for Windows only code 2019-05-09 16:33:08 -07:00
ReloadableConfig.cpp add some new options for controlling if we reload the config 2019-06-11 13:08:27 -07:00
ReloadableConfig.h add some new options for controlling if we reload the config 2019-06-11 13:08:27 -07:00