Sen API
Sen Libraries
Loading...
Searching...
No Matches
variant_conversion.h
Go to the documentation of this file.
1// === variant_conversion.h ============================================================================================
2// Sen Infrastructure
3// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4// See the LICENSE.txt file for more information.
5// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6// =====================================================================================================================
7
8#ifndef SEN_LIBS_DB_BINDINGS_PYTHON_VARIANT_CONVERSION_H
9#define SEN_LIBS_DB_BINDINGS_PYTHON_VARIANT_CONVERSION_H
10
11// sen
12#include "sen/core/meta/var.h"
13
14// pybind
15#include <pybind11/pybind11.h> // NOLINT(misc-include-cleaner)
16#include <pybind11/pytypes.h>
17
18[[nodiscard]] pybind11::object toPython(const sen::Var& var);
19
20#endif // SEN_LIBS_DB_BINDINGS_PYTHON_VARIANT_CONVERSION_H
Can hold any supported value type. Wraps std::variant to allow recursion and implements some helpers.
Definition var.h:119
pybind11::object toPython(const sen::Var &var)