VTK  9.3.20240424
vtkValueFromString.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3#ifndef vtkValueFromString_h
4#define vtkValueFromString_h
5
6#include "vtkCommonCoreModule.h"
7
8#include "vtkWrappingHints.h" // for VTK_WRAPEXCLUDE
9
10#include <cstdlib> // for std::size_t
11
12VTK_ABI_NAMESPACE_BEGIN
13
59template <typename T>
61 const char* begin, const char* end, T& output) noexcept;
62
63#define DECLARE_FROMSTRING_EXTERN_TEMPLATE(type) \
64 extern template VTKCOMMONCORE_EXPORT std::size_t vtkValueFromString<type>( \
65 const char* begin, const char* end, type&) noexcept
66
67// Declare explicit instantiation for all supported types
81
82#undef DECLARE_FROMSTRING_EXTERN_TEMPLATE
83
84VTK_ABI_NAMESPACE_END
85
86#endif
#define DECLARE_FROMSTRING_EXTERN_TEMPLATE(type)
VTK_WRAPEXCLUDE std::size_t vtkValueFromString(const char *begin, const char *end, T &output) noexcept
Low-level function to convert a string to ints, floats or bools.
#define VTK_WRAPEXCLUDE