Hi > > The registration mechanism is simple, call: > Dashel::streamTypeRegistry.reg("NAME", &createInstance<STREAM_CLASS>); > Where NAME is the protocol name, and STREAM_CLASS the C++ class of your > new stream. You can have a look at the bottom of dashel-posix.cpp for > inspiration. >
Thanks, this is a first step, but there is a problem, we need to derivate the CAN class from SelectableStream. The Hub needs it: Hub::step() { ... SelectableStream* stream = polymorphic_downcast<SelectableStream*>(*it); ... Thus making the API system-dependent (which is fine for can, it's a linux-only thing). _______________________________________________ Aseba-dev mailing list Aseba-dev@gna.org https://mail.gna.org/listinfo/aseba-dev