Developer Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Example.cc
1
#include <boost/python.hpp>
2
3
char
const
* greet() {
4
return
"hello, world"
;
5
}
6
7
struct
World
{
8
void
set
(std::string msg) { this->msg = msg; }
9
std::string greet() {
return
msg; }
10
std::string msg;
11
};
12
13
BOOST_PYTHON_MODULE(example) {
14
using namespace
boost::python
;
15
16
def(
"greet"
, greet);
17
18
class_<World>(
"World"
)
19
.def(
"greet"
, &World::greet)
20
.def(
"set"
, &World::set)
21
;
22
}
World
Definition:
Example.cc:7
python
libs_required
OpenMesh
src
Python
Example
Example.cc
Generated on Wed Oct 12 2016 12:27:47 for Developer Documentation by
1.8.11