Scarab  v2.9.0
Project 8 C++ Utility Library
param_binding_helpers.hh
Go to the documentation of this file.
1 /*
2  * param_binding_helpers.hh
3  *
4  * Created on: Jan 23, 2020
5  * Author: N. Oblath, L. Gladstone, B.H. LaRoque
6  */
7 
8 #ifndef PARAM_BINDING_HELPERS_HH_
9 #define PARAM_BINDING_HELPERS_HH_
10 
11 #include <algorithm> //for std::replace on string
12 
13 #include "param.hh"
14 #include "error.hh"
15 
16 #include "pybind11/pybind11.h"
17 #include "pybind11/pytypes.h"
18 
19 
20 namespace scarab_pybind
21 {
22 
23  scarab::param_ptr_t to_param( const pybind11::object& an_object, bool hyphenate_keys=false );
24  pybind11::object to_python( const scarab::param& a_param, bool underscore_keys = false );
25 
26 } /* namespace scarab_pybind */
27 #endif /* PARAM_BINDING_HLEPERS_HH_ */
pybind11::object to_python(const scarab::param &a_param, bool underscore_keys=false)
scarab::param_ptr_t to_param(const pybind11::object &an_object, bool hyphenate_keys=false)
std::unique_ptr< param > param_ptr_t
Definition: param_base.hh:23