void XMLNode::SetAttributes (AttribMap attrib) { AttribMap::iterator itor = attrib.begin (); for (; itor != attrib.end (); ++itor) { m_Node.SetAttribute(itor->first, itor->second); } }
attributes_impl::value_type attributes_impl::get(const std::wstring & QualifiedName) const { typedef AttribMap::const_iterator attr_map_iterator; typedef attributes::value_type attr_str_type; attr_map_iterator i = attrib_.find( QualifiedName ); if ( i != attrib_.end() ) return attr_str_type( values_[i->second].second ); else return attr_str_type(); }
vector<EGLint> attribMapToList (const AttribMap& attribs) { vector<EGLint> attribList; for (AttribMap::const_iterator it = attribs.begin(); it != attribs.end(); ++it) { attribList.push_back(it->first); attribList.push_back(it->second); } attribList.push_back(EGL_NONE); return attribList; }