ApplyModel¶
-
virtual void ISubController::ApplyModel(const std::string &xml) = 0¶
Replaces this sub-controller with a new instance based on the model contained in the XML controller description string.
- Parameters
xml – String containing the XML controller description to apply on this sub-controller.
- Throws
CInvalidFormatException
– Invalid XML contents (see exception message for details).CInvalidOperationException
– Top-controller state is not “Config”.CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CIncompatibleException
– Incompatible firmware version loaded.CObjectDestroyedException
– Object is destroyed.
- Remarks
Equivalent to: std::dynamic_pointer_cast<ITopController>(subController->GetParent())->ApplyModel(xml,{subController});