BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Public Member Functions | |
bool | wouldCast (const std::type_info &info) override |
bool | isSame (const DIWrapper &wrapper) override |
void | cast (void *raw, void *dest) override |
Additional Inherited Members | |
Static Public Member Functions inherited from BeeeOn::DIWCast | |
static void | add (DIWCast *cast) |
static DIWCast * | find (const std::type_info &info, const DIWrapper &wrapper) |
|
overridevirtual |
This is he most magical thing in the universe. We get two pointers we know they point to Poco::SharedPtr<From> and to Poco::SharedPtr<To> and do the cast by assigning them.
This code can be executed only when wouldCast() and isSame() return true.
Implements BeeeOn::DIWCast.
|
overridevirtual |
Test this cast works with the same base type as the given wrapper.
Implements BeeeOn::DIWCast.
|
overridevirtual |
Test this cast can cast to the given type.
Implements BeeeOn::DIWCast.