[go: up one dir, main page]

Menu

[ea6c30]: / media / bp-media.cc  Maximize  Restore  History

Download this file

21 lines (15 with data), 485 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include "../body/Gl_Car.h"
#include "XML_Parser.h"
#include <boost/python.hpp>
using namespace Vamos_Media;
namespace bp = boost::python;
void translate (XML_Exception const& e)
{
PyErr_SetString (PyExc_RuntimeError, e.message().c_str ());
}
BOOST_PYTHON_MODULE (media)
{
bp::register_exception_translator <XML_Exception> (&translate);
bp::class_<XML_Exception> ("XML_Exception", bp::init <std::string, int, std::string>())
.def ("message", &XML_Exception::message);
}