Re: [C++-sig] Let pyhton deside which data it recieves...

2012-12-13 Thread Roman Yakovenko
On Tue, Dec 11, 2012 at 8:14 PM, Hendrik van Arragon wrote: > Hi, > > I've made a little class for serial communication, which i want to export > from c++ to python. My problem is, that this class does not know what data > it's receiving. The layer above the protocol knows how to handle the data

[C++-sig] Let pyhton deside which data it recieves...

2012-12-11 Thread Hendrik van Arragon
Hi, I've made a little class for serial communication, which i want to export from c++ to python. My problem is, that this class does not know what data it's receiving. The layer above the protocol knows how to handle the data. Here is an example: class Packet{ public: uint8_t id;