void ResourceSkill::writer(const MetaCategory* c, XMLOutput* o) { bool first = true; for (Resource::iterator i = Resource::begin(); i != Resource::end(); ++i) for (Resource::skilllist::const_iterator j = i->getSkills().begin(); j != i->getSkills().end(); ++j) { if (first) { o->BeginObject(Tags::tag_resourceskills); first = false; } // We use the FULL mode, to force the flows being written regardless // of the depth in the XML tree. o->writeElement(Tags::tag_resourceskill, &*j, FULL); } if (!first) o->EndObject(Tags::tag_resourceskills); }