Skip to content

Commit

Permalink
today()
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Jul 19, 2024
1 parent 6f61b35 commit 5e26d24
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pya2l/amlparser_wrapper.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <sstream>

namespace py = pybind11;

std::string parse(const std::string& aml_stuff);

PYBIND11_MODULE(amlparser_ext, m) {
m.def("parse", &parse);
#if 0
py::class_<ValueContainer>(m, "ValueContainer")
.def(py::init<std::string_view>(), py::arg("name"))
.def("get_name", &ValueContainer::get_name)
.def("get_keywords", &ValueContainer::get_keywords)
.def("get_parameters", &ValueContainer::get_parameters)
.def("get_multiple_values", &ValueContainer::get_multiple_values)
.def("get_if_data", &ValueContainer::get_if_data)
#endif
};

0 comments on commit 5e26d24

Please sign in to comment.