From 21552196c529cdc4e7112d2f09a80ab81c71207a Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 24 Feb 2017 02:06:20 +0100 Subject: Settings class rework Using toml as format --- src/3rd-party/toml/toml.h | 1958 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1958 insertions(+) create mode 100644 src/3rd-party/toml/toml.h (limited to 'src/3rd-party/toml/toml.h') diff --git a/src/3rd-party/toml/toml.h b/src/3rd-party/toml/toml.h new file mode 100644 index 0000000..ec8c489 --- /dev/null +++ b/src/3rd-party/toml/toml.h @@ -0,0 +1,1958 @@ +#ifndef TINYTOML_H_ +#define TINYTOML_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace toml { + +// ---------------------------------------------------------------------- +// Declarations + +class Value; +typedef std::chrono::system_clock::time_point Time; +typedef std::vector Array; +typedef std::map Table; + +namespace internal { +template struct call_traits_value { + typedef T return_type; +}; +template struct call_traits_ref { + typedef const T& return_type; +}; +} // namespace internal + +template struct call_traits; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_ref {}; +template<> struct call_traits