CreateController

virtual void IController::CreateController(const std::string &xml, const std::string &sn, uint32_t id) = 0

Creates a simulated sub-controller from an XML controller description provided as string. The created sub-controller is connected to a bus according to the strategy specified in Bus selection strategy.

Parameters
  • xml – String containing XML controller description.

  • sn – Serial number of the simulated sub-controller.

  • id – ID of the simulated sub-controller, ignored if sub-controller does not support an ID.

Throws