void Serialiser::Serialise(const OrderedTask &task) { node.SetAttribute(_T("type"), GetTaskFactoryType(task.GetFactoryType())); Serialise(task.GetOrderedTaskBehaviour()); mode_optional_start = false; task.AcceptTaskPointVisitor(*this); mode_optional_start = true; task.AcceptStartPointVisitor(*this); }
void Serialiser::serialise(const OrderedTask &task) { m_node.set_attribute(_T("type"), task_factory_type(task.get_factory_type())); serialise(task.get_ordered_task_behaviour()); mode_optional_start = false; task.AcceptTaskPointVisitor(*this); mode_optional_start = true; task.AcceptStartPointVisitor(*this); }