ApplyModel¶
-
virtual void ITopController::ApplyModel(const std::string &xml, const std::vector<PSubController> &subControllers) = 0¶
Replaces the specified sub-controllers with new instances based on the model contained in the XML controller description string.
- Parameters
xml – String containing the XML controller description that contains the model to apply to the specified sub-controllers.
subControllers – Vector of sub-controllers that the XML model should be applied on.
- 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.