parameters: (self, doc)
docstring: Writes out the project model definitions into the project DOM document
          :param doc: DOM document
docstring_summary: Writes out the project model definitions into the project DOM document
          :param doc: DOM document
docstring_tokens: Writes out the project model definitions into the project DOM document : param doc : DOM document
function: def write_project(self, doc):
          """
          Writes out the project model definitions into the project DOM document
          :param doc: DOM document
          """
          qgis_nodes = doc.elementsByTagName('qgis')
          if not qgis_nodes:
              return
  
          qgis_node = qgis_nodes.at(0)
          project_models_node = doc.createElement('projectModels')
  
          for a in self.algorithms():
              definition = a.toVariant()
              element = QgsXmlUtils.writeVariant(definition, doc)
              project_models_node.appendChild(element)
          qgis_node.appendChild(project_models_node)
function_tokens: def write_project ( self , doc ) : qgis_nodes = doc . elementsByTagName ( 'qgis' ) if not qgis_nodes : return qgis_node = qgis_nodes . at ( 0 ) project_models_node = doc . createElement ( 'projectModels' ) for a in self . algorithms ( ) : definition = a . toVariant ( ) element = QgsXmlUtils . writeVariant ( definition , doc ) project_models_node . appendChild ( element ) qgis_node . appendChild ( project_models_node )