void Deserialiser::Deserialise(OrderedTask &task) { task.Clear(); task.SetFactory(GetTaskFactoryType()); task.Reset(); OrderedTaskBehaviour beh = task.GetOrderedTaskBehaviour(); Deserialise(beh); task.SetOrderedTaskBehaviour(beh); const DataNode::List children = node.ListChildrenNamed(_T("Point")); for (const auto &i : children) { std::unique_ptr<DataNode> point_node(i); Deserialiser pser(*point_node, waypoints); pser.DeserialiseTaskpoint(task); } }
/** * Retrieve the OrderedTaskBehaviour used by the OrderedTask * * @return OrderedTaskBehaviour reference */ void SetOrderedTaskBehaviour(const OrderedTaskBehaviour &otb) { task_ordered.SetOrderedTaskBehaviour(otb); }