diff options
Diffstat (limited to 'py_format.cc')
-rw-r--r-- | py_format.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/py_format.cc b/py_format.cc new file mode 100644 index 00000000..e2faf5dc --- /dev/null +++ b/py_format.cc @@ -0,0 +1,11 @@ +using namespace boost::python; +using namespace ledger; + +void export_format() +{ + class_< format_t > ("Format") + .def(init<string>()) + .def("parse", &format_t::parse) + .def("format", &format_t::format) + ; +} |