NeBuild dev
Loading...
Searching...
No Matches
at_path.hpp
Go to the documentation of this file.
1//# This file is a part of toml++ and is subject to the the terms of the MIT license.
2//# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
3//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
4// SPDX-License-Identifier: MIT
5#pragma once
6
8
11{
12 template <typename T>
13 using parse_path_callback = bool(TOML_CALLCONV*)(void*, T);
14
16 bool TOML_CALLCONV parse_path(std::string_view,
17 void*,
18 parse_path_callback<std::string_view>,
19 parse_path_callback<size_t>);
20}
23
25{
66 node_view<node> TOML_CALLCONV at_path(node & root, std::string_view path) noexcept;
67
73 node_view<const node> TOML_CALLCONV at_path(const node& root, std::string_view path) noexcept;
74
75#if TOML_ENABLE_WINDOWS_COMPAT
76
84 node_view<node> TOML_CALLCONV at_path(node & root, std::wstring_view path);
85
93 node_view<const node> TOML_CALLCONV at_path(const node& root, std::wstring_view path);
94
95#endif
96}
TOML_NAMESPACE_START
Definition at_path.hpp:25
TOML_NODISCARD TOML_EXPORTED_FREE_FUNCTION node_view< const node > TOML_CALLCONV at_path(const node &root, std::string_view path) noexcept
Returns a const view of the node matching a fully-qualified "TOML path".
TOML_NAMESPACE_END
Definition at_path.hpp:97
A TOML path.
Definition path.hpp:239
#define TOML_CALLCONV
Calling convention to apply to exported free/static functions. \detail Not defined by default (let th...
Definition preprocessor.hpp:1134
#define TOML_EXPORTED_FREE_FUNCTION
An 'export' annotation to add to free functions. \detail Not defined by default.
Definition preprocessor.hpp:988
#define TOML_NODISCARD
Definition preprocessor.hpp:439
#define TOML_IMPL_NAMESPACE_END
Definition preprocessor.hpp:1334
#define TOML_IMPL_NAMESPACE_START
Definition preprocessor.hpp:1333