diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-27 10:09:00 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:32 -0400 |
commit | d0e9822ed16cb36de4cb1171a89d4049c615f1a0 (patch) | |
tree | fa48eba60a56dee5bcf1ebd266d822c5a96e4323 /py_format.cc | |
parent | 0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f (diff) | |
download | ledger-d0e9822ed16cb36de4cb1171a89d4049c615f1a0.tar.gz ledger-d0e9822ed16cb36de4cb1171a89d4049c615f1a0.tar.bz2 ledger-d0e9822ed16cb36de4cb1171a89d4049c615f1a0.zip |
Moved around the Python code.
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) + ; +} |