class Event public Event Event const Event other Event operator const

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Event
{
public:
Event();
Event( const Event &other );
Event& operator=( const Event &other );
~Event();
template<class E> bool set( const std::string &name, const E &value );
template<class E> bool get( const std::string &name, E *value ) const;
bool serialize( std::ostream *out ) const;
bool parse( std::istream *in );
};
class_<Event> ("Event", init<>())
.def(init<MyEvent>())
.def("set", &Event::set<int32_t>)
.def("set", &Event::set<double>)
.def("set", &Event::set<std::string>)
.def("get_int", &MyEvent::get_int)
.def("get_float", &MyEvent::get_float)
.def("get_string", &MyEvent::get_string)
.def("serialize", &Event::serialize)
.def("parse", &Event::parse)
;