summaryrefslogtreecommitdiff
path: root/src/py_format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-30 06:26:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:33 -0400
commitc8899addfd2deed3d84be2de234681db64987722 (patch)
tree07f9a5eb603ff4ec83fe18c83083575d2b7a439a /src/py_format.cc
parentaa9cc125796711afcaa459898e95527fdae8e912 (diff)
downloadfork-ledger-c8899addfd2deed3d84be2de234681db64987722.tar.gz
fork-ledger-c8899addfd2deed3d84be2de234681db64987722.tar.bz2
fork-ledger-c8899addfd2deed3d84be2de234681db64987722.zip
Rearranged the sources a bit.
Diffstat (limited to 'src/py_format.cc')
-rw-r--r--src/py_format.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/py_format.cc b/src/py_format.cc
new file mode 100644
index 00000000..e2faf5dc
--- /dev/null
+++ b/src/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)
+ ;
+}