Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
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 template <typename T>
12 using parse_path_callback = bool(TOML_CALLCONV*)(void*, T);
13
15 bool TOML_CALLCONV parse_path(std::string_view, void*, parse_path_callback<std::string_view>,
16 parse_path_callback<size_t>);
17}
20
62 node_view<node> TOML_CALLCONV at_path(node & root, std::string_view path) noexcept;
63
69 node_view<const node> TOML_CALLCONV at_path(const node& root, std::string_view path) noexcept;
70
71#if TOML_ENABLE_WINDOWS_COMPAT
72
80 node_view<node> TOML_CALLCONV at_path(node & root, std::wstring_view path);
81
89 node_view<const node> TOML_CALLCONV at_path(const node& root, std::wstring_view path);
90
91#endif
92}
#define T
Definition 17.names.cpp:163
TOML_NAMESPACE_START
Definition at_path.hpp:21
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:93
A TOML path.
Definition path.hpp:209
#define TOML_CALLCONV
Calling convention to apply to exported free/static functions. \detail Not defined by default (let th...
#define TOML_EXPORTED_FREE_FUNCTION
An 'export' annotation to add to free functions. \detail Not defined by default.
#define TOML_NODISCARD
#define TOML_IMPL_NAMESPACE_END
#define TOML_IMPL_NAMESPACE_START
#define bool
Definition stdbool.h:24