An example of the plugin mechanism. The CustomBackend automatically registers itself to the BackendFactory of the DeviceAccess library.
#include <ChimeraTK/BackendFactory.h>
#include <ChimeraTK/DeviceAccessVersion.h>
#include <ChimeraTK/DummyBackend.h>
#include <boost/make_shared.hpp>
public:
std::string , std::map<std::string, std::string> parameters) {
return boost::make_shared<CustomBackend>(absolutePath);
}
}
};
};