2020-03-12 15:23:25 +00:00
|
|
|
//# This file is a part of toml++ and is subject to the the terms of the MIT license.
|
2021-01-02 15:48:47 +00:00
|
|
|
//# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
|
2020-03-12 15:23:25 +00:00
|
|
|
//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
|
2020-04-10 16:46:00 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-03-12 15:23:25 +00:00
|
|
|
|
2020-04-14 09:45:32 +00:00
|
|
|
#ifndef INCLUDE_TOMLPLUSPLUS_H
|
|
|
|
#define INCLUDE_TOMLPLUSPLUS_H
|
2020-01-04 14:21:38 +00:00
|
|
|
|
|
|
|
//# Note: most of these would be included transitively but
|
|
|
|
//# they're listed explicitly here because this file
|
|
|
|
//# is used as the source for generate_single_header.py.
|
|
|
|
|
2020-04-10 16:46:00 +00:00
|
|
|
#include "toml_preprocessor.h"
|
2020-08-11 13:34:03 +00:00
|
|
|
|
2021-04-18 12:04:46 +00:00
|
|
|
TOML_PUSH_WARNINGS;
|
|
|
|
TOML_DISABLE_SPAM_WARNINGS;
|
2020-08-11 13:34:03 +00:00
|
|
|
|
2020-01-04 14:21:38 +00:00
|
|
|
#include "toml_common.h"
|
2020-01-11 21:15:24 +00:00
|
|
|
#include "toml_date_time.h"
|
2020-01-12 15:37:02 +00:00
|
|
|
#include "toml_print_to_stream.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
#include "toml_node.h"
|
|
|
|
#include "toml_value.h"
|
2020-01-22 21:29:46 +00:00
|
|
|
#include "toml_array.h"
|
|
|
|
#include "toml_table.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
#include "toml_node_view.h"
|
2020-01-11 21:15:24 +00:00
|
|
|
#include "toml_utf8.h"
|
2020-04-09 08:13:12 +00:00
|
|
|
#if TOML_PARSER
|
|
|
|
#include "toml_parse_error.h"
|
2021-05-06 08:03:25 +00:00
|
|
|
#include "toml_parse_result.h"
|
2020-04-09 08:13:12 +00:00
|
|
|
#include "toml_utf8_streams.h"
|
|
|
|
#include "toml_parser.h"
|
|
|
|
#endif // TOML_PARSER
|
2021-05-06 08:03:25 +00:00
|
|
|
#include "toml_formatter.h"
|
|
|
|
#include "toml_default_formatter.h"
|
|
|
|
#include "toml_json_formatter.h"
|
2020-04-10 16:46:00 +00:00
|
|
|
|
2020-03-02 10:14:54 +00:00
|
|
|
#if TOML_IMPLEMENTATION
|
2020-04-09 08:13:12 +00:00
|
|
|
#include "toml_node.hpp"
|
|
|
|
#include "toml_array.hpp"
|
|
|
|
#include "toml_table.hpp"
|
2021-05-06 08:03:25 +00:00
|
|
|
#if TOML_PARSER
|
|
|
|
#include "toml_utf8_streams.hpp"
|
|
|
|
#include "toml_parser.hpp"
|
|
|
|
#endif // TOML_PARSER
|
2020-04-09 08:13:12 +00:00
|
|
|
#include "toml_default_formatter.hpp"
|
2020-05-20 10:27:06 +00:00
|
|
|
#include "toml_json_formatter.hpp"
|
2021-05-06 08:03:25 +00:00
|
|
|
#if !TOML_HEADER_ONLY
|
|
|
|
#include "toml_instantiations.hpp"
|
|
|
|
#endif // !TOML_HEADER_ONLY
|
2020-04-09 08:13:12 +00:00
|
|
|
#endif // TOML_IMPLEMENTATION
|
2020-03-02 10:14:54 +00:00
|
|
|
|
2021-04-18 12:04:46 +00:00
|
|
|
TOML_POP_WARNINGS; // TOML_DISABLE_SPAM_WARNINGS
|
2020-08-11 13:34:03 +00:00
|
|
|
|
2020-02-18 21:29:59 +00:00
|
|
|
// macro hygiene
|
2020-01-04 14:21:38 +00:00
|
|
|
#if TOML_UNDEF_MACROS
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_ABI_NAMESPACES
|
|
|
|
#undef TOML_ABI_NAMESPACE_BOOL
|
|
|
|
#undef TOML_ABI_NAMESPACE_END
|
|
|
|
#undef TOML_ABI_NAMESPACE_START
|
2021-01-16 10:59:10 +00:00
|
|
|
#undef TOML_ABSTRACT_BASE
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_ALWAYS_INLINE
|
|
|
|
#undef TOML_ANON_NAMESPACE
|
|
|
|
#undef TOML_ANON_NAMESPACE_END
|
|
|
|
#undef TOML_ANON_NAMESPACE_START
|
|
|
|
#undef TOML_ARM
|
|
|
|
#undef TOML_ASSERT
|
|
|
|
#undef TOML_ASSUME
|
|
|
|
#undef TOML_ASYMMETRICAL_EQUALITY_OPS
|
2020-07-05 15:08:28 +00:00
|
|
|
#undef TOML_ATTR
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_CLANG
|
|
|
|
#undef TOML_COMPILER_EXCEPTIONS
|
|
|
|
#undef TOML_CONCAT
|
|
|
|
#undef TOML_CONCAT_1
|
|
|
|
#undef TOML_CONSTEVAL
|
|
|
|
#undef TOML_CPP
|
|
|
|
#undef TOML_DISABLE_ARITHMETIC_WARNINGS
|
2021-05-11 21:48:53 +00:00
|
|
|
#undef TOML_DISABLE_CODE_ANALYSIS_WARNINGS
|
2020-01-07 15:52:50 +00:00
|
|
|
#undef TOML_DISABLE_INIT_WARNINGS
|
2020-08-09 09:27:14 +00:00
|
|
|
#undef TOML_DISABLE_SPAM_WARNINGS
|
2020-07-05 15:08:28 +00:00
|
|
|
#undef TOML_DISABLE_SHADOW_WARNINGS
|
|
|
|
#undef TOML_DISABLE_SUGGEST_WARNINGS
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_DISABLE_SWITCH_WARNINGS
|
2020-08-09 09:27:14 +00:00
|
|
|
#undef TOML_DISABLE_WARNINGS
|
|
|
|
#undef TOML_ENABLE_WARNINGS
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_EMPTY_BASES
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_EVAL_BOOL_0
|
|
|
|
#undef TOML_EVAL_BOOL_1
|
|
|
|
#undef TOML_EXTERNAL_LINKAGE
|
|
|
|
#undef TOML_FLOAT128
|
|
|
|
#undef TOML_FLOAT16
|
|
|
|
#undef TOML_FLOAT_CHARCONV
|
|
|
|
#undef TOML_FP16
|
|
|
|
#undef TOML_GCC
|
2020-08-26 11:18:28 +00:00
|
|
|
#undef TOML_HAS_ATTR
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_HAS_CUSTOM_OPTIONAL_TYPE
|
2021-05-19 11:36:25 +00:00
|
|
|
#undef TOML_HAS_CHAR8
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_HAS_INCLUDE
|
|
|
|
#undef TOML_ICC
|
2020-08-09 09:27:14 +00:00
|
|
|
#undef TOML_ICC_CL
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_IMPLEMENTATION
|
|
|
|
#undef TOML_IMPL_NAMESPACE_END
|
|
|
|
#undef TOML_IMPL_NAMESPACE_START
|
2021-06-24 18:08:45 +00:00
|
|
|
#undef TOML_INCLUDE_WINDOWS_H
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_INT128
|
|
|
|
#undef TOML_INTELLISENSE
|
|
|
|
#undef TOML_INTERNAL_LINKAGE
|
|
|
|
#undef TOML_INT_CHARCONV
|
|
|
|
#undef TOML_LANG_AT_LEAST
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_LANG_EFFECTIVE_VERSION
|
|
|
|
#undef TOML_LANG_HIGHER_THAN
|
2020-04-02 21:39:21 +00:00
|
|
|
#undef TOML_LANG_UNRELEASED
|
2020-05-23 14:35:47 +00:00
|
|
|
#undef TOML_LAUNDER
|
2020-10-09 05:50:15 +00:00
|
|
|
#undef TOML_LIFETIME_HOOKS
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_LIKELY
|
2021-06-24 18:08:45 +00:00
|
|
|
#undef TOML_MAKE_FLAGS_
|
|
|
|
#undef TOML_MAKE_FLAGS
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_MAKE_VERSION
|
|
|
|
#undef TOML_MAY_THROW
|
|
|
|
#undef TOML_MSVC
|
|
|
|
#undef TOML_NAMESPACE
|
|
|
|
#undef TOML_NAMESPACE_END
|
|
|
|
#undef TOML_NAMESPACE_START
|
|
|
|
#undef TOML_NEVER_INLINE
|
|
|
|
#undef TOML_NODISCARD_CTOR
|
|
|
|
#undef TOML_NO_DEFAULT_CASE
|
|
|
|
#undef TOML_PARSER_TYPENAME
|
|
|
|
#undef TOML_POP_WARNINGS
|
|
|
|
#undef TOML_PUSH_WARNINGS
|
2020-07-20 14:13:52 +00:00
|
|
|
#undef TOML_SA_LIST_BEG
|
|
|
|
#undef TOML_SA_LIST_END
|
|
|
|
#undef TOML_SA_LIST_NEW
|
|
|
|
#undef TOML_SA_LIST_NXT
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_SA_LIST_SEP
|
2020-07-20 14:13:52 +00:00
|
|
|
#undef TOML_SA_NATIVE_VALUE_TYPE_LIST
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_SA_NEWLINE
|
2020-07-20 14:13:52 +00:00
|
|
|
#undef TOML_SA_NODE_TYPE_LIST
|
|
|
|
#undef TOML_SA_UNWRAPPED_NODE_TYPE_LIST
|
2020-08-02 14:02:10 +00:00
|
|
|
#undef TOML_SA_VALUE_EXACT_FUNC_MESSAGE
|
|
|
|
#undef TOML_SA_VALUE_FUNC_MESSAGE
|
|
|
|
#undef TOML_SA_VALUE_MESSAGE_CONST_CHAR8
|
|
|
|
#undef TOML_SA_VALUE_MESSAGE_U8STRING_VIEW
|
|
|
|
#undef TOML_SA_VALUE_MESSAGE_WSTRING
|
2020-07-25 17:37:30 +00:00
|
|
|
#undef TOML_SIMPLE_STATIC_ASSERT_MESSAGES
|
|
|
|
#undef TOML_TRIVIAL_ABI
|
|
|
|
#undef TOML_UINT128
|
|
|
|
#undef TOML_UNLIKELY
|
|
|
|
#undef TOML_UNREACHABLE
|
|
|
|
#undef TOML_USING_ANON_NAMESPACE
|
2020-01-04 14:21:38 +00:00
|
|
|
#endif
|
2020-02-18 21:29:59 +00:00
|
|
|
|
2020-04-14 09:45:32 +00:00
|
|
|
#endif // INCLUDE_TOMLPLUSPLUS_H
|