BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <DIWrapper.h>
Public Member Functions | |
virtual bool | wouldCast (const std::type_info &info)=0 |
virtual bool | isSame (const DIWrapper &wrapper)=0 |
virtual void | cast (void *raw, void *dest)=0 |
Static Public Member Functions | |
static void | add (DIWCast *cast) |
static DIWCast * | find (const std::type_info &info, const DIWrapper &wrapper) |
Interface to a casting implementation. There is also a static registry of possible casts so anybody can access it. All casts register by DIWCast::add() are automatically deleted on exit.