lasp/cpp_src/lasp_cpp.cpp

61 lines
1.5 KiB
C++
Raw Normal View History

#include "lasp_config.h"
2022-07-20 12:58:48 +00:00
#include <pybind11/pybind11.h>
/*! \mainpage
*
* \section intro_sec Introduction
*
* Welcome to the LASP (Library for Acoustic Signal Processing) code
* documentation. The code comprises a part which is written in C++, a part
* that is written in Python, and a part that functions as glue, which is
2023-01-20 13:22:48 +00:00
* Pybind11 C++ glue code. An example of such a file is lasp_cpp.cpp.
* This is the internal documentation of LASP. It serves as background
* information for programmers.
*
* \section Installation
*
2023-01-20 13:22:48 +00:00
* For the installation manual, please refer to the <a
* href="https://code.ascee.nl/ASCEE/lasp/src/branch/master/README.md">README</a>
* of the Git repository.
*
*
2023-01-20 13:22:48 +00:00
* \section Usage
*
* Some usage examples are given in the <a href=
* "https://code.ascee.nl/ASCEE/lasp/src/branch/master/examples">examples</a>
* directory of the repository.
*
* */
/**
* \defgroup pybind Pybind11 wrapper code
* @{
*
*/
2022-07-20 12:58:48 +00:00
namespace py = pybind11;
void init_dsp(py::module &m);
void init_deviceinfo(py::module &m);
void init_daqconfiguration(py::module &m);
void init_daq(py::module &m);
void init_streammgr(py::module &m);
void init_datahandler(py::module &m);
void init_siggen(py::module &m);
2022-07-20 12:58:48 +00:00
PYBIND11_MODULE(lasp_cpp, m) {
#if LASP_DOUBLE_PRECISION == 1
m.attr("LASP_DOUBLE_PRECISION") = true;
#else
m.attr("LASP_DOUBLE_PRECISION") = false;
#endif
2022-07-20 12:58:48 +00:00
init_dsp(m);
init_deviceinfo(m);
init_daqconfiguration(m);
init_daq(m);
init_streammgr(m);
init_datahandler(m);
init_siggen(m);
2022-07-20 12:58:48 +00:00
}
/** @} */