1 |
// $Id$ |
2 |
/* |
3 |
****************************************************************************** |
4 |
* * |
5 |
* COPYRIGHT ACcESS 2005 - All Rights Reserved * |
6 |
* * |
7 |
* This software is the property of ACcESS. No part of this code * |
8 |
* may be copied in any form or by any means without the expressed written * |
9 |
* consent of ACcESS. Copying, use or modification of this software * |
10 |
* by any unauthorised person is illegal unless that * |
11 |
* person has a software license agreement with ACcESS. * |
12 |
* * |
13 |
****************************************************************************** |
14 |
*/ |
15 |
|
16 |
#include "bruce/Bruce/Bruce.h" |
17 |
|
18 |
#include <boost/python.hpp> |
19 |
#include <boost/python/module.hpp> |
20 |
#include <boost/python/def.hpp> |
21 |
#include <boost/python/detail/defaults_gen.hpp> |
22 |
|
23 |
using namespace boost::python; |
24 |
|
25 |
/** |
26 |
\page bruce Bruce |
27 |
Bruce is the python module name that contains the interfaces |
28 |
to the C++ wrapper to bruce. |
29 |
|
30 |
\version 1.0.0 |
31 |
|
32 |
\section class_desc Class Description: |
33 |
Bruce |
34 |
|
35 |
\section class_limits Class Limitations: |
36 |
None |
37 |
|
38 |
\section class_conds Class Conditions of Use: |
39 |
None |
40 |
|
41 |
\section throws Throws: |
42 |
None |
43 |
|
44 |
*/ |
45 |
|
46 |
BOOST_PYTHON_MODULE(brucecpp) |
47 |
{ |
48 |
|
49 |
class_<bruce::Bruce, bases<escript::AbstractContinuousDomain> >("Bruce",init<>()) |
50 |
.def(init<const bruce::Bruce&>()) |
51 |
.def("getDim",&bruce::Bruce::getDim) |
52 |
.def("getX",&bruce::Bruce::getX) |
53 |
.def("getSize",&bruce::Bruce::getSize); |
54 |
|
55 |
} |