/[escript]/trunk/esys2/bruce/src/Bruce/brucecpp.cpp
ViewVC logotype

Annotation of /trunk/esys2/bruce/src/Bruce/brucecpp.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (hide annotations)
Thu Sep 1 03:31:39 2005 UTC (15 years, 1 month ago) by jgs
File size: 1736 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-09-01

1 jgs 149 // $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     }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26